out*_*ing 5 android android-annotations android-studio
我不确定它是Android Studio(0.1.9)还是AndroidAnnotation问题,但是,最近我无法制作和编译我的AndroidAnnotations项目.
好的,所以我尝试制作项目,这就是我在"消息"窗口中得到的内容:
Information:Round 1:
Information: input files: {com.antyzero.sidereelo.ui.activity.SplashActivity}
Information: annotations: [com.googlecode.androidannotations.annotations.EActivity, java.lang.Override]
Information: last round: false
Information:Processor com.googlecode.androidannotations.AndroidAnnotationProcessor matches [com.googlecode.androidannotations.annotations.EActivity] and returns true.
Information:Note: Starting AndroidAnnotations annotation processing
Information:Round 2:
Information: input files: {com.antyzero.sidereelo.ui.activity.SplashActivity_}
Information: annotations: [java.lang.Override]
Information:Processor com.googlecode.androidannotations.AndroidAnnotationProcessor matches [] and returns true.
Information:Round 3:
Information: input files: {}
Information: annotations: []
Information: last round: true
Information:Compilation completed successfully with 1 warning in 17 sec
Information:0 errors
Information:1 warning
Warning:: Unclosed files for the types '[dummy1372862415557]'; these types will not undergo annotation processing
Run Code Online (Sandbox Code Playgroud)
没有更少,仅此而已.结果我没有创建SplashActivity_.此消息来自全新项目,但我的旧项目也受到影响.
来自Android Studio的回答:使用AndroidAnnotations没有帮助.
我在Android Studio之前的几个星期和AA和IntelliJ一起工作没有问题.IMO可能会在最新的Android Studio更新后发生,但也许现在有一些解决方案,如果不是,我会向Android Studio团队报告.感谢帮助.
还有一件事.我的项目使用Maven并从CLI构建它们工作正常,所有类都按原样生成.
当我尝试注入视图时,我遇到了同样的问题@ViewById,问题是我将该字段声明为私有。声明它至少受保护解决了问题!
前:
@ViewById
private NoListResultsView noResultsView;
Run Code Online (Sandbox Code Playgroud)
后
@ViewById
protected NoListResultsView noResultsView;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2540 次 |
| 最近记录: |