版本参数:
- ionic : 3.19.1
- cordova : 8.0.0
- node : 8.7.0
- npm : 5.4.2
**完整的报错信息
Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.357 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[ERROR] An error occurred while running cordova run android (exit code 1).
**解决办法
红色区域的这张图片进行相同大小图片的替换(不能删除,只能替换),再次打包就能成功,以前在手机上面打包没有出现出现过类似的问题,但最近升级了版本之后,手机却不能正常打包了,网上查找了很多文章,无赖国内资料有限,于是Google一番,虽然解决办法找到了,却因为英语能力有限,不能一一把问题的产生解释出来,下面就是国外小哥提供的方法。