Annotation processors must be explicitly declared now. The following dependencies on the compile cl

集成阿里 ARouter 报错~ 

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.

  - arouter-compiler-1.1.4.jar (com.alibaba:arouter-compiler:1.1.4)
  - auto-service-1.0-rc2.jar (com.google.auto.service:auto-service:1.0-rc2)
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.
defaultConfig {
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        javaCompileOptions {
            annotationProcessorOptions {
//                includeCompileClasspath = true
                arguments = [ moduleName : project.getName()]
            }
        }

    }

 

需要设置 

 

includeCompileClasspath = true 

 

你可能感兴趣的:(android,bug,AndroidBUGFix)