ionic4打包报错Execution failed for task 'app:mergeReleaseResources' when using ionic build with--release tag
执行ionic cordova build android --release --prod进行打包,报错如下
Execution failed for task ':app:mergeReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.0-5013011-windows
Daemon #0: Unexpected error during compile '..\platforms\android\app\src\main\res\drawable-port-xxxhdpi\screen.png', attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
原因:启动页面太大
解决方法:更换小点的启动页面
参考网址