标签: android kapt
我尝试仅将kapt用于调试版本。 在annotationProcessor的情况下,可以这样写:
kapt
annotationProcessor
debugAnnotationProcessor 'com.google.dagger:dagger-compiler:version-number'
debug前缀意味着我们只想为debug变体添加此依赖项。
debug
kapt是否有其他选择?我不能使用debugKapt,因为它不起作用。
debugKapt