Tag: 自动值

在Android Studio 3.0中,Kapt不适用于AutoValue

Gradle依赖关系: compile 'com.google.dagger:dagger:2.9' annotationProcessor 'com.google.dagger:dagger-compiler:2.9' kapt 'com.google.dagger:dagger-compiler:2.9' provided "com.google.auto.value:auto-value:1.4.1" annotationProcessor "com.google.auto.value:auto-value:1.4.1" 得到这个堆栈跟踪: :presentation:kaptDevDebugKotlin e: @AutoValue public abstract class Categories implements CategoriesModel{ e: ^ e: symbol: class CategoriesModel e: path/Categories.java:13: error: cannot find symbol w: warning: The following options were not recognized by any processor: '[kapt.kotlin.generated]' w: e: org.jetbrains.kotlin.kapt3.diagnostic.KaptError: Error while annotation processing at org.jetbrains.kotlin.kapt3.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:90) at […]