本文主要是介绍Annotation processors must be explicitly declared now. The following dependencies on the compile cl,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.
出现此问题,可能是因为升级android studio或者把别人的项目提高gradle、或者第三方依赖不适合你项目的gradle导致的,此时需要配置下app级别的 build.gradle文件里的defaultConfig 添加javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
android {compileSdkVersion 26buildToolsVersion "26.0.0"defaultConfig {xxxxxxxxxxxxxxx javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }}
}
再try again就好了
这篇关于Annotation processors must be explicitly declared now. The following dependencies on the compile cl的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!