Failed to capture snapshot of input files for task ':app:javaPreCompileDebug

Error:Execution failed for task ‘:app:javaPreCompileDebug’. > 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 annotationProcesso

如果报的是这个错! 不要着急

在app的build中
android {

defaultConfig {

//添加如下配置就OK了
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
}

}

在自己的buidl.Gradle 找到Android

作者:苗小源
来源:CSDN
原文:https://blog.csdn.net/qq_41755832/article/details/79907102
版权声明:本文为博主原创文章,转载请附上博文链接!
https://www.cnblogs.com/shmilyGWT/p/7833571.html

发布了209 篇原创文章 · 获赞 18 · 访问量 39万+

猜你喜欢

转载自blog.csdn.net/llrraa2010/article/details/83515732