ionic cordova 打包Rlease版本包出现异常Execution failed for task ':app:mergeReleaseResources'.java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException
异常:
解决方法:
找到android=》app 下的build.gradle文件,如下增加如下配置
运行ionic cordova build android --release打包语句正常执行
aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false checkReleaseBuilds false abortOnError false