Material-calendarview: Cannot create variant 'android-lint' after configuration

Created on 27 Nov 2017  路  9Comments  路  Source: prolificinteractive/material-calendarview

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

Most helpful comment

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())
 }

All 9 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Maragues picture Maragues  路  5Comments

damianflannery picture damianflannery  路  4Comments

chuks picture chuks  路  5Comments

gibsonndemanga picture gibsonndemanga  路  6Comments

fahimk picture fahimk  路  4Comments