这里写自定义目录标题
gradle升级到5.1.1版(插件为3.4.0)时报 Could not find the AndroidManifest.xml file, using generation folder… 问题
在Terminal执行./gradlew compileDebugSources --stacktrace命令后,发现具体报错如下:
错误: Could not find the AndroidManifest.xml file, using generation folder [/Users/cjk035/MyFiles/Workspace/Workspace_as/nowaitclient.git/app/build/generatedource/apt/debug])
最终解决方式:
defaultConfig{
....
....
javaCompileOptions {
annotationProcessorOptions {
arguments = [
'resourcePackageName': applicationId,
"androidManifestFile": "$projectDir/src/main/AndroidManifest.xml".toString()
]
}
}
}