Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
Android 在app下的build.gradle中添加:
aaptOptions.cruncherEnabled =false
aaptOptions.useNewCruncher =false
即可,如下:
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
defaultConfig {
}
}
如果出现下面,文件名不能以数字开头
Execution failed for task ':app:mergeDebugResources'.
/Users/user/Desktop/ReactNativeDemo/android/app/src/main/res/drawable-mdpi/007_swiper_phone_img_bg.jpg: Error: The resource name must start with a letter
网友评论