我正在使用Android Studio 2.2 Preview 7,并且Lombok插件突然开始说:
Annotation processing seems to be disabled for the project X并提供设置链接.
点击通知不会把我带到正确的地方.
有什么办法解决这个问题?
我正在使用AndroidAnnotaion,但由于Android Studio 2.3和Gradle 2.3.0,他们说android-apt已经过时了.而且annotationProcessor是一个新的.所以,我想知道我怎么能annotationProcessor像apt以前一样配置.
如果我误解了什么,请帮忙.
所以,之前......
apply plugin: 'android-apt'
dependencies {
def AAVersion = '4.2.0'
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
}
apt {
arguments {
library 'true'
}
}
Run Code Online (Sandbox Code Playgroud)
现在...
dependencies {
def AAVersion = '4.2.0'
annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
}
Run Code Online (Sandbox Code Playgroud) android android-annotations android-gradle-plugin android-apt annotation-processor
我正在尝试将Dagger2添加到Android Studio中的项目中.
这是我的依赖.
compile 'com.google.dagger:dagger:2.8'
annotationProcessor 'com.google.dagger:dagger-compiler:2.8'
provided 'javax.annotation:jsr250-api:1.0'
Run Code Online (Sandbox Code Playgroud)
我正在关注这个例子.
https://guides.codepath.com/android/Dependency-Injection-with-Dagger-2#advantages
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误.
无法解析符号DaggerNetComponent
我尝试更改依赖关系和谷歌搜索后找到的其他解决方案.但没有运气.
谁可以帮我这个事?