AndroidAnnotation停止识别折射(右布局…)

AndroidAnnotation停止识别折射(右布局…),android,android-annotations,Android,Android Annotations,无法理解发生了什么,但现在使用AA编译时遇到了稳定的问题 /addedEventFragment.java:239:error:出了问题:AndroidAnnotations 4.6.0中出现了意外错误! 公众意见{ ^ .... 原因:java.lang.annotation.AnnotationTypeMismatchException:为注释元素public abstract int org.androidannotations.annotations.EFragment.value()找

无法理解发生了什么,但现在使用AA编译时遇到了稳定的问题

/addedEventFragment.java:239:error:出了问题:AndroidAnnotations 4.6.0中出现了意外错误!
公众意见{
^
....
原因:java.lang.annotation.AnnotationTypeMismatchException:为注释元素public abstract int org.androidannotations.annotations.EFragment.value()找到的数据类型不正确(找到的数据类型为R.layout)
在com.sun.tools.javac.model.AnnotationProxyMaker$ValueVisitor$1AnnotationTypeMismatchExceptionProxy.generateException上
import org.androidannotations.annotations.afterview;
导入org.androidannotations.annotations.Click;
导入org.androidannotations.annotations.EFragment;
导入org.androidannotations.annotations.ViewById;
导入android.support.v4.app.Fragment;
导入android.support.v4.app.FragmentManager;
导入com.amicuscreative.zola.R;
@EFragment(R.layout.fragment\u event\u details\u edit)
公共类AddedEventFragment扩展了片段
实现AdapterView.OnItemLongClickListener、AdapterView.OnItemClickListener、ReminderAddListener{
....
}
AA-4.6.0 gradle插件-3.5.0 格拉德尔-5.4.1 构建工具-28.0.3


当然,布局是存在的。

问题在于谷歌截击库。 我在另一个文件
import…volley.*
my_包.*
,与R类冲突

当我将
volley.*
更改为两个
volley.class\u名称时
编译时没有问题。。。 此外,IDEA还尝试优化导入,并且可以随时将
volley.class\u name
切换到
volley.*
返回,但问题比以前小:)

始终检查所有警告和错误,即使它们与您的特定问题无关