I'm trying to run Sample in android studio 3.1 canary 4 and get the error:
Error: Can not create variant 'android-lint' after configuration ': library: debugRuntimeElements' has been resolved
Same error here. Did you fix at the end?
i am also getting same error any solution yet ?
same error.
Delete the local gradle 4.4 version and open the original project. The software prompts you to upgrade to 4.4, please do not upgrade!
@youthhinson this is not the correct approach to the issue.
Developer needs to update the library and make it compatible with recent gradle versions.
In build.gradle of library,
replace line 39 where it sets classpath:
classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath())
with this:
doFirst {
classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath())
}
@GokhanArik
Thanks it worked
Library has been updated to the latest version of gradle in 1.5.0. Please reopen or post a new issue if you are still facing this error. Thanks
Thanks
Most helpful comment
In
build.gradleof library,replace line 39 where it sets classpath:
classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath())with this: