Title: Execution failed for task ':app:mergeReleaseResources'. > java.util.concurrent.ExecutionException · Issue #1394 · NativeScript/android · GitHub
Open Graph Title: Execution failed for task ':app:mergeReleaseResources'. > java.util.concurrent.ExecutionException · Issue #1394 · NativeScript/android
X Title: Execution failed for task ':app:mergeReleaseResources'. > java.util.concurrent.ExecutionException · Issue #1394 · NativeScript/android
Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 5.3.2 Cross-platform modules: Android Runti...
Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 5.3...
X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 5.3...
Opengraph URL: https://github.com/NativeScript/android/issues/1394
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Execution failed for task ':app:mergeReleaseResources'. > java.util.concurrent.ExecutionException","articleBody":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 5.3.2\r\n - Cross-platform modules:\r\n - Android Runtime: 5.3.1\r\n\r\n**Dependencies:**\r\n\r\n```\r\n┌────────────────────────────────┬─────────┐\r\n│ Plugin │ Version │\r\n│ @exeleon/nativescript-svg │ ^1.0.1 │\r\n│ intl │ ^1.2.5 │\r\n│ nativescript-bubble-navigation │ ^1.0.3 │\r\n│ nativescript-cardview │ ^3.1.1 │\r\n│ nativescript-directions │ ^1.3.0 │\r\n│ nativescript-geolocation │ ^5.0.0 │\r\n│ nativescript-google-maps-sdk │ ^2.7.0 │\r\n│ nativescript-localize │ ^4.1.1 │\r\n│ nativescript-plugin-firebase │ ^8.3.2 │\r\n│ nativescript-stripe │ ^5.1.0 │\r\n│ nativescript-theme-core │ ^1.0.4 │\r\n│ nativescript-ui-sidedrawer │ ^6.0.0 │\r\n│ nativescript-vue │ ^2.2.2 │\r\n│ tns-core-modules │ ^5.0.2 │\r\n│ vuex │ ^3.0.1 │\r\n└────────────────────────────────┴─────────┘\r\n```\r\n\r\n**Dev Dependencies:**\r\n\r\n```\r\n┌────────────────────────────────────┬─────────┐\r\n│ Plugin │ Version │\r\n│ @babel/core │ ^7.0.0 │\r\n│ @babel/preset-env │ ^7.0.0 │\r\n│ @vue/cli-plugin-eslint │ ^3.5.1 │\r\n│ @vue/cli-service │ ^3.5.3 │\r\n│ @vue/eslint-config-airbnb │ ^4.0.0 │\r\n│ babel-eslint │ ^10.0.1 │\r\n│ babel-loader │ ^8.0.2 │\r\n│ babel-traverse │ 6.26.0 │\r\n│ babel-types │ 6.26.0 │\r\n│ babylon │ 6.18.0 │\r\n│ clean-webpack-plugin │ ^0.1.19 │\r\n│ copy-webpack-plugin │ ^4.5.2 │\r\n│ css-loader │ ^1.0.0 │\r\n│ eslint │ ^5.8.0 │\r\n│ eslint-plugin-vue │ ^5.0.0 │\r\n│ lazy │ 1.0.11 │\r\n│ nativescript-dev-sass │ ^1.7.0 │\r\n│ nativescript-dev-webpack │ next │\r\n│ nativescript-vue-template-compiler │ ^2.0.0 │\r\n│ nativescript-worker-loader │ ~0.9.0 │\r\n│ node-sass │ ^4.9.2 │\r\n│ sass-loader │ ^7.1.0 │\r\n│ terser-webpack-plugin │ ^1.1.0 │\r\n│ vue-loader │ ^15.2.6 │\r\n│ vue-template-compiler │ ^2.6.10 │\r\n│ webpack │ ^4.16.4 │\r\n│ webpack-bundle-analyzer │ ~2.13.1 │\r\n│ webpack-cli │ ^3.1.0 │\r\n└────────────────────────────────────┴─────────┘\r\n```\r\n\r\n**Describe the bug**\r\n\u003c!-- A clear and concise description of what the bug is. Please, explain whether it's a build time error or a runtime error. More detailed logs can be easily obtained by following the instructions in this guide: https://docs.nativescript.org/get-support#how-to-obtain-diagnostic-reports. -->\r\n\r\nWhen I run a release build, I get this error:\r\n\r\n```\r\nGradle build...\r\n + setting applicationId\r\n + applying user-defined configuration from C:\\Users\\sebas\\projets\\energy-bank-app\\app\\App_Resources\\Android\\before-plugins.gradle\r\n + applying user-defined configuration from C:\\Users\\sebas\\projets\\energy-bank-app\\app\\App_Resources\\Android\\app.gradle\r\n + using support library version 28.0.0\r\n + adding nativescript runtime package dependency: nativescript-optimized\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\@exeleon\\nativescript-svg\\platforms\\android\\androidsvg-release.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\nativescript-bubble-navigation\\platforms\\android\\bubblenavigation-release.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\nativescript-bubble-navigation\\platforms\\android\\nativescript_bubble_navigation.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\nativescript-geolocation\\platforms\\android\\nativescript_geolocation.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\nativescript-google-maps-sdk\\platforms\\android\\nativescript_google_maps_sdk.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\nativescript-plugin-firebase\\platforms\\android\\firebase-release.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\nativescript-plugin-firebase\\platforms\\android\\nativescript_plugin_firebase.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\nativescript-ui-sidedrawer\\platforms\\android\\TNSSideDrawer-release.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\nativescript-ui-core\\platforms\\android\\TNSCore-release.aar\r\n + adding aar plugin dependency: C:\\Users\\sebas\\projets\\energy-bank-app\\node_modules\\tns-core-modules-widgets\\platforms\\android\\widgets-release.aar\r\nregisterResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)\r\nregisterResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)\r\nAAPT2 aapt2-3.3.2-5309881-windows Daemon #1: Unexpectedly exit.\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':app:mergeReleaseResources'.\r\n> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.2-5309881-windows Daemon #1: Unexpected error during compile 'C:\\Users\\sebas\\projets\\energy-bank-app\\platforms\\android\\app\\src\\main\\res\\drawable-xxxhdpi\\background.png', attempting to stop daemon.\r\n This should not happen under normal circumstances, please file an issue if it does.\r\n```\r\n\r\nIt worked as expected before, but since I changed the default `background.png` files, I get this error when building in release mode with this command :\r\n\r\n```\r\ntns build android --bundle --release --key-store-path upload-key.keystore --key-store-password *** --key-store-alias upload-key --key-store-alias-password *** --aab\r\n```\r\n\r\nMaybe I did something wrong with the files but I already checked the dimensions of the picture, which are exactly the same than the default ones.\r\n\r\n**To Reproduce**\r\n\u003c!-- Add commands used or steps taken to reproduce the behaviour. -->\r\n\r\nI'm not sure how to reproduce exactly this error. I can try to create a project from scratch, add my background files and see if I can reproduce (if you think it will help!). \r\n\r\nI also checked this issue (https://github.com/NativeScript/android-runtime/issues/1094). I don't know if is still applicable. I don\"t have a special character in my path, so I don't think it is the same issue. I would like to keep AAPT2 if possible.\r\n\r\nThanks for your help on this!","author":{"url":"https://github.com/sebj54","@type":"Person","name":"sebj54"},"datePublished":"2019-06-12T18:28:22Z","url":"https://github.com/NativeScript/android/issues/1394"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a31829ec-f047-33c5-36c9-08fa33900205 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A62C:3F8AB1:1C147B8:23B5C63:6B013EE2 |
| html-safe-nonce | 8855eb0e3cc18d0594c6e731eb15348c47d3501f657cf82d7b817243cd2bc980 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjJDOjNGOEFCMToxQzE0N0I4OjIzQjVDNjM6NkIwMTNFRTIiLCJ2aXNpdG9yX2lkIjoiOTA4NjcyODY3NjMyOTk5NjAwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e4e7fe3178fae40b829cc84e109c67d2677c8c753d8965bab572aa385237afcf |
| hovercard-subject-tag | issue:455360924 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/android/1394/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4fbe4d3c63cec644a8bc3c35288fa1dea228e282e339c9431236706a37726e52/NativeScript/android/issues/1394 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4fbe4d3c63cec644a8bc3c35288fa1dea228e282e339c9431236706a37726e52/NativeScript/android/issues/1394 |
| og:image:alt | Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 5.3... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sebj54 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/android git https://github.com/NativeScript/android.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 29137950 |
| octolytics-dimension-repository_nwo | NativeScript/android |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29137950 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/android |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width