xxxxx为包名,如果包名是com.a.b.c,那么就是com/a/b/c
Execution failed for task ':ios-cutting:processDebugResources'.
> Android resource linking failed
Output: error: failed to create directory 'D:\project\oversea\client\client-oversea1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\xxxxx'.
解决方案:
换一台机子,这个问题不在存在,就不用解决
尝试过的方案(无效):
- 清理缓存,删除缓存文件,各种清理(File->Invalidate Caches / Restart...,clear build)
- 直接构建release ./gradlew assembleRelease
- compileSdkVersion is 28
- 删除 C:\Users[username].gradle\caches
- PROP_MIN_SDK_VERSION=16 -->PROP_MIN_SDK_VERSION=23
- 添加过这个
configurations.all {
resolutionStrategy.force 'com.android.support:support-v4:24.0.0'
} - File -> Project Structure... -> Suggestions and then Apply all
参考的失败链接
https://www.jianshu.com/p/c0861560797e
https://stackoverflow.com/questions/52512326/com-android-builder-internal-aapt-v2-aapt2exception-android-resource-compilatio
https://stackoverflow.com/questions/53323910/com-android-builder-internal-aapt-v2-aapt2exception-android-resource-linking-fa