Title: AAPT2 fails to merge release resources with empty project created by Android Studio 4.1.2 · Issue #1657 · NativeScript/android · GitHub
Open Graph Title: AAPT2 fails to merge release resources with empty project created by Android Studio 4.1.2 · Issue #1657 · NativeScript/android
X Title: AAPT2 fails to merge release resources with empty project created by Android Studio 4.1.2 · Issue #1657 · 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: Android Studio 4.1.2 Build #AI-201.8743.12....
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: And...
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: And...
Mail addresses
debian-kernel@lists.debian.org
Opengraph URL: https://github.com/NativeScript/android/issues/1657
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AAPT2 fails to merge release resources with empty project created by Android Studio 4.1.2","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: \r\nAndroid Studio 4.1.2\r\nBuild #AI-201.8743.12.41.7042882, built on December 19, 2020\r\nRuntime version: 1.8.0_242-release-1644-b3-6222593 amd64\r\nVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o\r\nLinux 4.19.0-12-amd64\r\nGC: ParNew, ConcurrentMarkSweep\r\nMemory: 733M\r\nCores: 2\r\nRegistry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true\r\nNon-Bundled Plugins: org.jetbrains.kotlin\r\nCurrent Desktop: MATE\r\nuname output:\r\nLinux thrash 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux\r\n\r\n - Cross-platform modules:\r\n - Android Runtime:\r\naffects all runtimes (using 28)\r\n - iOS Runtime (if applicable):\r\n - Plugin(s):\r\n(default)\r\n\r\n**Describe the bug**\r\nAAPT2 fails to merge release results on an empty project created by Android Studio. Debug appears to work ok.\r\n\r\n**To Reproduce**\r\n1. create a new project using an empty Activity\r\n2. Attempt to build a release version\r\n\r\n**Expected behavior**\r\nShould build properly, and allow me to sign the APK.\r\n\r\n**Sample project**\r\n\u003c!-- If possible, provide a link from the [Playground](https://play.nativescript.org) with reproduction of the problem. If not, consider attaching a sample project or link to a repository with such project. -->\r\n\r\n**Additional context**\r\n\u003c!-- Add any other context about the problem here. -->\r\nRunning Devuan Linux (amd64)\r\n(from dmesg)\r\nLinux version 4.19.0-12-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.152-1 (2020-10-18)\r\nCPU0: AMD Athlon(tm) Dual Core Processor 4450e (family: 0xf, model: 0x6b, stepping: 0x2)\r\nMemory: 3816144K/4061672K available (10252K kernel code, 1247K rwdata, 3312K rodata, 1596K init, 2264K bss, 245528K reserved, 0K cma-reserved)\r\n\r\nExecution failed for task ':app:mergeReleaseResources'.\r\n> Multiple task action failures occurred:\r\n > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade\r\n > AAPT2 aapt2-4.1.2-6503028-linux Daemon #0: Unexpected error during compile '/home/bobf/AndroidStudioProjects/****/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png', attempting to stop daemon.\r\n This should not happen under normal circumstances, please file an issue if it does.\r\n > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade\r\n > AAPT2 aapt2-4.1.2-6503028-linux Daemon #1: Unexpected error during compile '/home/bobf/AndroidStudioProjects/****/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png', attempting to stop daemon.\r\n This should not happen under normal circumstances, please file an issue if it does.\r\n > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade\r\n > AAPT2 aapt2-4.1.2-6503028-linux Daemon #3: Unexpected error during compile '/home/bobf/AndroidStudioProjects/****/app/src/main/res/mipmap-xxhdpi/ic_launcher.png', attempting to stop daemon.\r\n This should not happen under normal circumstances, please file an issue if it does.\r\n > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade\r\n > AAPT2 aapt2-4.1.2-6503028-linux Daemon #2: Unexpected error during compile '/home/bobf/AndroidStudioProjects/****/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png', attempting to stop daemon.\r\n This should not happen under normal circumstances, please file an issue if it does.\r\n\r\nI updated everything as of 3/16/2021. No changes in behavior. Was unable to import projects that were built successfully with earlier versions of Android Studio.\r\n\r\nSeems similar to #1394, which has been closed.\r\nAll of the icons are defaults created along with the project. I merely created an empty project and attempted to build a release version of it. Normally you would expect this to work, but it's failing with the SAME errors I get when I attempt to build an existing project that built properly with an OLDER version of Android Studio.\r\n","author":{"url":"https://github.com/bombasticbob","@type":"Person","name":"bombasticbob"},"datePublished":"2021-03-16T05:13:18Z","url":"https://github.com/NativeScript/android/issues/1657"}
| 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:f50b3dfb-4268-9418-1e4c-e0e5af235ce5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BC4:A71F9:D5A8B3:10C77E1:6B013B80 |
| html-safe-nonce | 625ff3e27960413697b7113673c24a49d68ee00af3370cfe2f7940d1efce643c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkM0OkE3MUY5OkQ1QThCMzoxMEM3N0UxOjZCMDEzQjgwIiwidmlzaXRvcl9pZCI6IjE4NDIxMzYzMTYxMTc3OTk2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 174222822ab96b1fc6aca126f1d7587f7b952a36f9d87c4b843cf6c391149afe |
| hovercard-subject-tag | issue:832417988 |
| 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/1657/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e50bc3387e5bf403d98981645cb7ae58684dbf5379f8e75e40cc36c4dc9f62e8/NativeScript/android/issues/1657 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e50bc3387e5bf403d98981645cb7ae58684dbf5379f8e75e40cc36c4dc9f62e8/NativeScript/android/issues/1657 |
| 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: And... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bombasticbob |
| 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