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

 

posted @ 2023-07-10 15:01  流年sugar  阅读(38)  评论(0编辑  收藏  举报