Android Studio3.3打包报错AAPT2 process unexpectedly exit. Error output:

在签名打包时报错AAPT2 process unexpectedly exit.  之前打包没问题 以为是新更换的资源文件重复(同名不同后缀名的情况) 检查了没有

 然后在build文件中添加

buildTypes {
  release {
    aaptOptions.cruncherEnabled = false
    aaptOptions.useNewCruncher = false
  }
}

错误解决

原文地址:https://www.cnblogs.com/Sharley/p/12876819.html