我的build.gradle文件具有以下依赖项配置:
dependencies {
compile 'com.android.support:appcompat-v7:+'
compile 'org.androidannotations:androidannotations:3.0.+'
compile 'org.androidannotations:androidannotations-api:3.0.+'
compile fileTree(dir: 'libs', include: ['*.jar'])
}
然而标签@EActivity在构建期间导致此错误:
Note: Resolve log file to
/home/ubuntu/MyApplication/app/build/classes/androidannotations.log
Note: Initialize AndroidAnnotations 3.0.1 with options {}
Note: Start processing for 1 annotations on 5 elements
error: Could not find the AndroidManifest.xml file, going up from path
[/home/ubuntu/MyApplication/app/build/classes/debug] found using dummy file []
(max atempts:
file:///home/ubuntu/MyApplication/app/build/classes/debug/dummy1394454004584.java)
Note: Time measurements: [Whole Processing = 9 ms],
[Extract Annotations = 6 ms], [Extract Manifest = 2 ms],
Note: Finish processing
Note: Start processing for 0 annotations on 0 elements
Note: Time measurements: [Whole Processing = 1 ms],
Note: Finish processing
warning: Unclosed files for the types '[dummy1394454004523, dummy1394454004584]';
these types will not undergo annotation processing
1 error
1 warning
:app:compileDebugJava FAILED
我使用的是Android Studio 0.5.1,Gradle 1.11和Gradle插件0.9。+。