Moh*_*aid 5 java android gradle android-annotations android-studio
我将 Android studio 更新到 3.5 但是使用 android annotations 时出现问题
Gradle may disable incremental compilation as the following annotation processors are not incremental: jetified-androidannotations-4.6.0.jar (org.androidannotations:androidannotations:4.6.0).
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
Run Code Online (Sandbox Code Playgroud)
我已经把 android.enableSeparateAnnotationProcessing=true 放在 gradle.properties 文件中
但据说
信息:选项设置“android.enableSeparateAnnotationProcessing=true”是实验性的,不受支持。当前默认值为“假”。
找不到 AndroidManifest.xml 文件
我遇到了几乎相同的问题,在将 android studio 和 gradle 更新到 3.5 后无法构建我的应用程序,但根据此答案,我将其添加到应用程序 gradle 中的 defaultConfig{} 中,问题解决了!
javaCompileOptions {
annotationProcessorOptions {
arguments = [
"androidManifestFile": "$projectDir/src/main/AndroidManifest.xml".toString()
]
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1971 次 |
| 最近记录: |