Error:Execution failed for task ':app2:javaPreCompileDebug'. > Annotation processors must be explici

Error:Execution failed for task ':app2: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 annotationProcess



出现这种错误 ,在app下Build. gradle里面加如下代码就行

defaultConfig {
    javaCompileOptions
            { annotationProcessorOptions { includeCompileClasspath = true } }
 

猜你喜欢

转载自blog.csdn.net/qq_36488374/article/details/80103506