使用 AndroidAnnotation 注解框架提示找不到 AndroidManifest.xml
Gradle may disable incremental compilation as the following annotation processors are not incremental: androidannotations-4.5.1.jar (org.androidannotations:androidannotations:4.5.1).
Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental.
错误: Could not find the AndroidManifest.xml file, using generation folder [G:\workplace\project\AndroidVideoCache2\app\build\generated\source\apt\debug])
解决方案
在module 的 build.gradle 手动指明 AndroidManifest.xml 位置
android{
defaultConfig{
javaCompileOptions {
annotationProcessorOptions {
arguments = [
'resourcePackageName': "xxx你的包名",
"androidManifestFile": "$projectDir/src/main/AndroidManifest.xml".toString()
]
}
}
}
}
官方 issues:
AndroidAnnotatio issues 2034 链接