I'm running 'com.android.tools.build:gradle:2.4.0-alpha7' on AS 2.4 Preview 7 and getting the following error:
Error:Execution failed for task ':zapImoveisApp:javaPreCompileZapDebug'.
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.
log4j-core-2.2.jar
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
As you can see on the provided url documentation, it's possible to disable the verification for this error using the following gradle config, but must be used as a temporary solution, because it may be removed in the future.
I'm running 'com.android.tools.build:gradle:2.4.0-alpha7' on AS 2.4 Preview 7 and getting the following error:
As you can see on the provided url documentation, it's possible to disable the verification for this error using the following gradle config, but must be used as a temporary solution, because it may be removed in the future.
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath false } }
So we need a alternative solution that fits this new annotation processor dependency configurations.