相关疑难解决方法(0)

Lombok需要注释处理

我正在使用Android Studio 2.2 Preview 7,并且Lombok插件突然开始说: Annotation processing seems to be disabled for the project X并提供设置链接.

在此输入图像描述

点击通知不会把我带到正确的地方.

有什么办法解决这个问题?

lombok android-studio intellij-lombok-plugin

39
推荐指数
5
解决办法
2万
查看次数

annotationprocessor和apt配置等价物

我正在使用AndroidAnnotaion,但由于Android Studio 2.3和Gradle 2.3.0,他们说android-apt已经过时了.而且annotationProcessor是一个新的.所以,我想知道我怎么能annotationProcessorapt以前一样配置.

如果我误解了什么,请帮忙.

所以,之前......

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

8
推荐指数
1
解决办法
4091
查看次数

无法解析android中的dagger组件的符号

我正在尝试将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

我尝试更改依赖关系和谷歌搜索后找到的其他解决方案.但没有运气.

谁可以帮我这个事?

android dagger-2

6
推荐指数
1
解决办法
6421
查看次数

如何在Android Studio 2.3中启用注释处理器

这是我收到的错误通知 这是错误

当我去描述的位置时,我找不到它

在此输入图像描述

android android-studio android-studio-2.3

2
推荐指数
1
解决办法
3845
查看次数