最近项目添加model的时报错,看着错误信息眼熟,在此记录一下解决方法
错误信息:
ERROR: Cannot create variant 'android-lint' after configuration ':sdk:debugRuntimeElements' has been resolved
解决办法:
classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath())
替换成:
doFirst {
classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath())
}
参考:
https://github.com/google/ExoPlayer/commit/13592dfb53ec99ce1fdb2744e34717dbdec9dea8