gpt4 book ai didi

android - Ionic Cordova 发布构建问题

转载 作者:行者123 更新时间:2023-11-29 02:19:56 24 4
gpt4 key购买 nike

所以这是调试构建工作正常没有错误的问题

Ionic cordova run android --device

但是当我尝试生成发布版本时,出现以下错误

    * What went wrong:
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 'D:\Development\ionic\DummyGPS\platforms\android\app\src\main\res\drawable-land-xhdpi\screen.png', attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
Exception in thread "ForkJoinPool.commonPool-worker-1" java.lang.IllegalStateException: AAPT Process manager cannot be shut down while daemons are in use
at com.android.builder.internal.aapt.v2.Aapt2DaemonManager.shutdown(Aapt2DaemonManager.kt:96)
at com.android.build.gradle.internal.res.namespaced.RegisteredAaptService.shutdown(Aapt2DaemonManagerService.kt:61)
at com.android.build.gradle.internal.workeractions.WorkerActionServiceRegistry$shutdownAllRegisteredServices$1$1.run(WorkerActionServiceRegistry.kt:96)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
[ERROR] An error occurred while running subprocess cordova.

cordova.cmd build android --release exited with exit code 1.

Re-running this command with the --verbose flag may provide more information.

我曾多次尝试使用

生成资源
ionic cordova recources

但这一切都是徒劳的。期待建议

最佳答案

好的,寻找类似答案的人这些是我尝试过的方法,这是有效的方法;

  • 更新你的插件
  • 干净地运行 cordova
  • mergeReleaseResources 错误完全基于启动画面和应用程序图标资源,因此请手动减小文件大小(如果您的 ionic cordova 资源正在生成更大的文件)

关于android - Ionic Cordova 发布构建问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56896868/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com