Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

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

$
0
0

I’m having an issue while generating production apk:

$ ionic cordova build android --prod --release
> ng.cmd run app:ionic-cordova-build:production --platform=android
✔ Browser application bundle generation complete.
✔ Copying assets complete.
⠋ Generating index html...10 rules skipped due to selector errors:
  :host-context([dir=rtl]) .ion-float-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-end -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-sm-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-sm-end -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-md-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-md-end -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-lg-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-lg-end -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-xl-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-xl-end -> unmatched pseudo-class :host-context
✔ Index html generation complete.

Initial Chunk Files                                | Names                      |      Size
main.ddef65d7ae84086b5a48.js                       | main                       | 449.75 kB
polyfills.bba78f4777cafdafe087.js                  | polyfills                  |  44.21 kB
styles.51b841dd2fea220db682.css                    | styles                     |  23.59 kB
cordova.c464b14390c8a3bb44df.js                    | cordova                    |  20.97 kB
runtime.6e274b1a23ba75dc471f.js                    | runtime                    |   5.03 kB

                                                   | Initial Total              | 543.56 kB

Lazy Chunk Files                                   | Names                      |      Size
8669.a16e1de63d9c4410e906.js                       | -                          |  96.85 kB
polyfills-core-js.9ca783f1f1fbe5a2c925.js          | polyfills-core-js          |  91.59 kB
862.118a93275fca1eeb740c.js                        | -                          |  59.57 kB
7162.5786e8a44135e60b7ca8.js                       | -                          |  47.59 kB
1489.c5e98fbc9b5c0df44618.js                       | -                          |  38.56 kB
8837.cf19a020634aecd38d75.js                       | -                          |  38.44 kB
6108.b3352bcaf7ba70161723.js                       | -                          |  33.29 kB
6164.191e89e1c28dd9dc5c56.js                       | -                          |  26.60 kB
7895.3d6d8fd74cb57127b33e.js                       | -                          |  23.53 kB
392.17a07f91b2d236b19d00.js                        | -                          |  23.43 kB
9921.fa1b4d8e5c89def87ce4.js                       | -                          |  23.16 kB
7321.c2200924afe33510bceb.js                       | -                          |  20.89 kB
4195.2043bdd494abbe967eaa.js                       | -                          |  20.81 kB
8056.3bea1c27f37d659e6f53.js                       | -                          |  20.14 kB
5043.d56d387ba11d9151f48b.js                       | -                          |  20.04 kB
6272.647ac3318eab9d1c45c5.js                       | -                          |  18.83 kB
5277.7bec741352b10e3ecd71.js                       | -                          |  18.54 kB
4694.9616faebd982c86da850.js                       | -                          |  18.48 kB
8206.8c1841fd0f834e13b075.js                       | -                          |  18.29 kB
8959.27da10c7b89b6df2e5c7.js                       | -                          |  18.22 kB
polyfills-dom.d5fa34493d76dd6ecca6.js              | polyfills-dom              |  17.99 kB
stencil-polyfills-dom.7f92886ec0428b86fca7.js      | stencil-polyfills-dom      |  17.96 kB
5728.64a509f3d862283137f3.js                       | -                          |  17.73 kB
4513.6a472823826aeb995a9d.js                       | -                          |  14.56 kB
1855.3f55d402fbb048bbeeef.js                       | -                          |  13.44 kB
801.cb41ca1931ed2dde371f.js                        | -                          |  13.40 kB
7110.c837d6fa5cfb820c9310.js                       | -                          |  12.96 kB
2191.6115c10723cde3e0819e.js                       | -                          |  12.77 kB
5830.d2229e95986ca260a33d.js                       | -                          |  12.63 kB
592.ccf3b0e722120aa09b4b.js                        | -                          |  12.31 kB
8708.6731a4c2f37c81fcd8bb.js                       | -                          |  11.27 kB
6034.283977798d7e929f27bd.js                       | -                          |  11.14 kB
6911.0bc4b7dc9820baf99748.js                       | -                          |  10.85 kB
9222.2f3d2d992553980d8262.js                       | -                          |   9.82 kB
5174.b86bb69afcd901ab5f71.js                       | -                          |   9.71 kB
3527.b7e6daa839b719cc851c.js                       | -                          |   9.52 kB
polyfills-css-shim.d863eb926322b7f45660.js         | polyfills-css-shim         |   8.47 kB
common.2c041194c971e315c333.js                     | common                     |   8.37 kB
7509.88a0dc44d04ac0f5453e.js                       | -                          |   8.22 kB
stencil-polyfills-css-shim.d995ce5558cc6cdb9dd8.js | stencil-polyfills-css-shim |   8.19 kB
8695.50dc36494820398ade70.js                       | -                          |   8.19 kB
937.0b2bc39d9c020a76de5d.js                        | -                          |   7.83 kB
431.73dd421c0cb964e78711.js                        | -                          |   7.25 kB
7896.1fa4ec3449fd9680e2be.js                       | -                          |   6.25 kB
3087.345809b1a462a5cbf310.js                       | -                          |   5.79 kB
3122.83f79c9026e39b0adb36.js                       | -                          |   5.21 kB
1374.52ccdfc7fc18d14af56b.js                       | -                          |   5.12 kB
4313.973b7be97e0585da48cb.js                       | -                          |   4.29 kB
8810.bc67aadab3cf504ea65c.js                       | -                          |   4.29 kB
9695.985274635ca316fa7d7d.js                       | -                          |   4.22 kB
7802.64fcebc71da8ffe52d9a.js                       | -                          |   3.57 kB
305.22cad026cad81cbbf5d0.js                        | -                          |   3.55 kB
1602.6e690fade200b943b3ec.js                       | -                          |   3.04 kB
9437.760b67a5a5bb0a733d00.js                       | -                          |   2.63 kB
1315.d93a7d904514bba871d7.js                       | -                          |   2.04 kB
8991.18bd826f4ecbbff3086c.js                       | -                          |   1.90 kB
8025.3d9ad1062edfc33e0f1a.js                       | -                          |   1.57 kB
7757.c6299379a3918d5b1d01.js                       | -                          |   1.51 kB
1709.36f8c4c1c16f9a8700d2.js                       | -                          |   1.41 kB
4297.3634750835c3f5340163.js                       | -                          |   1.36 kB
1296.d9899bb1011929e3dedc.js                       | -                          |   1.22 kB
4262.07b5fa423de95f9e5aa6.js                       | -                          |   1.10 kB
7089.b5d960faf12e06f76075.js                       | -                          | 756 bytes
9706.81cb0542f9d9d03a4175.js                       | -                          | 606 bytes
6069.67f91714398e57fd253a.js                       | -                          | 439 bytes
9072.863a33bd3702b932455b.js                       | -                          | 385 bytes

Build at: 2021-08-01T22:22:30.774Z - Hash: 1bfe48bd02a371fad0f9 - Time: 67078ms
> cordova.cmd build android --release
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=D:\RunningPrograms\android-sdk (recommended setting)
ANDROID_HOME=D:\RunningPrograms\android-sdk (DEPRECATED)
Subproject Path: CordovaLib
Subproject Path: app

> Configure project :app
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

> Task :app:preBuild UP-TO-DATE
> Task :CordovaLib:preBuild UP-TO-DATE
> Task :CordovaLib:preReleaseBuild UP-TO-DATE
> Task :CordovaLib:checkReleaseManifest UP-TO-DATE
> Task :CordovaLib:processReleaseManifest UP-TO-DATE
> Task :app:preReleaseBuild UP-TO-DATE
> Task :CordovaLib:compileReleaseAidl NO-SOURCE
> Task :app:compileReleaseAidl NO-SOURCE
> Task :CordovaLib:packageReleaseRenderscript NO-SOURCE
> Task :app:compileReleaseRenderscript UP-TO-DATE
> Task :app:checkReleaseManifest UP-TO-DATE
> Task :app:generateReleaseBuildConfig UP-TO-DATE
> Task :app:prepareLintJar UP-TO-DATE
> Task :app:generateReleaseSources UP-TO-DATE
> Task :CordovaLib:compileReleaseRenderscript UP-TO-DATE
> Task :CordovaLib:generateReleaseBuildConfig UP-TO-DATE
> Task :CordovaLib:generateReleaseResValues UP-TO-DATE
> Task :CordovaLib:generateReleaseResources UP-TO-DATE
> Task :CordovaLib:packageReleaseResources UP-TO-DATE
> Task :CordovaLib:generateReleaseRFile UP-TO-DATE
> Task :CordovaLib:prepareLintJar UP-TO-DATE
> Task :CordovaLib:generateReleaseSources UP-TO-DATE
> Task :CordovaLib:javaPreCompileRelease UP-TO-DATE
> Task :CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :CordovaLib:processReleaseJavaRes NO-SOURCE
> Task :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
> Task :app:javaPreCompileRelease UP-TO-DATE
> Task :app:mainApkListPersistenceRelease UP-TO-DATE
> Task :app:generateReleaseResValues UP-TO-DATE
> Task :app:generateReleaseResources UP-TO-DATE
> Task :app:mergeReleaseResources FAILED

FAILURE: Build failed with an exception.

* 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:\mobileapp\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.org20 actionable tasks: 1 executed, 19 up-to-date


BUILD FAILED in 3s
Exception in thread "ForkJoinPool.commonPool-worker-2" 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:172)
D:\mobileapp\platforms\android\gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* 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:\mobileapp\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-2" 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:172)
[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.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>