René's URL Explorer Experiment


Title: AAPT2 error during Android compilation · Issue #1094 · NativeScript/android · GitHub

Open Graph Title: AAPT2 error during Android compilation · Issue #1094 · NativeScript/android

X Title: AAPT2 error during Android compilation · Issue #1094 · NativeScript/android

Description: Please, provide the details below: Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo? Yes Tell us about the problem I get the following error while running tns run android: E...

Open Graph Description: Please, provide the details below: Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo? Yes Tell us about the problem I get the followin...

X Description: Please, provide the details below: Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo? Yes Tell us about the problem I get the followin...

Opengraph URL: https://github.com/NativeScript/android/issues/1094

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AAPT2 error during Android compilation","articleBody":"## Please, provide the details below:\r\n\r\n### Did you verify this is a real problem by searching the [NativeScript Forum](http://forum.nativescript.org) and the [other open issues in this repo](https://github.com/NativeScript/nativescript/issues)?\r\nYes\r\n\r\n### Tell us about the problem\r\nI get the following error while running `tns run android`:\r\n```\r\nError: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':app:mergeDebugResources'.\r\n> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details\r\n```\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 4.1.1\r\n- Cross-platform modules: 4.0.1\r\n- Runtime(s): 4.1.3\r\n\r\n### Did the error happen while the app was being constructed? (buildtime error)\r\nHere is the log of `tns run android --log trace`: \r\n[log.txt](https://github.com/NativeScript/android-runtime/files/2136840/log.txt)\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n1. Install NativeScript on a Windows 10 computer with an account name containing non-ASCII characters (in my log, the \"Ú\" character in `C:\\Users\\LÚo\\...` should be an \"é\" instead).\r\n2. Create a new project (even in a path without non-ASCII character) (in my case, it's the NativeScript with Angular Groceries tutorial).\r\n3. Run `tns run android`. At this point, it might or might not work a couple of times until it starts failing with the AAPT2 error and never works again (would it be with LiveSync or by re-running `tns run android`).\r\n\r\nThe only way I found to bypass this error is to set `android.enableAapt2=false` in `platform/android/gradle.properties`. However, if I run `./gradlew`, it tells me this AAPT2 option is deprecated and will soon be removed:\r\n```\r\nPS C:\\NativeScript\\Groceries\\platforms\\android> ./gradlew\r\nStarting a Gradle Daemon, 1 busy and 1 incompatible Daemons could not be reused, use --status for details\r\n\r\n> Configure project :app\r\nWARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.\r\nUse 'android.enableAapt2=true' to remove this warning.\r\nIt will be removed at the end of 2018..\r\n```\r\n\r\nAs far as my research went, it seems that this problem could occur because of the non-ASCII character in my Windows user account (which can't be changed) and I am not the only one: \r\n- [Same problem on another NativeScript repository](https://github.com/NativeScript/nativescript-vscode-extension/issues/189)\r\n- [A clue that this problem could be solved by updating Gradle in tns-android to at least version 3.2.0](https://stackoverflow.com/questions/46988102/errorcom-android-tools-aapt2-aapt2exception-aapt2-error-check-logs-for-detail): my Gradle version is 3.1.2 according to `platform/android/build.gradle`.","author":{"url":"https://github.com/LeoDupont","@type":"Person","name":"LeoDupont"},"datePublished":"2018-06-26T12:53:53Z","url":"https://github.com/NativeScript/android/issues/1094"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:38762d02-c5af-0eb6-40ea-26d29b586f6c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id819E:27D3AD:18FA209:1FB1A04:6B014284
html-safe-nonce1aa242de6309b1e86481b92eb05ab7210ffa8b6e55579cbf8100b380ed10c131
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTlFOjI3RDNBRDoxOEZBMjA5OjFGQjFBMDQ6NkIwMTQyODQiLCJ2aXNpdG9yX2lkIjoiNDU1Mjk2MDIxOTQxOTg1MzQ0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3b8e98e911ec155db3da67a8f628bb3157c83d48f34af2add27c4312867c67e7
hovercard-subject-tagissue:335805420
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/android/1094/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7c1bbd294006310b5192a9df9cf69cd7d444ec0d4c53c75890d5b5aaf5395375/NativeScript/android/issues/1094
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7c1bbd294006310b5192a9df9cf69cd7d444ec0d4c53c75890d5b5aaf5395375/NativeScript/android/issues/1094
og:image:altPlease, provide the details below: Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo? Yes Tell us about the problem I get the followin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLeoDupont
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/android/issues/1094#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F1094
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F1094
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/issues/1094
Reloadhttps://github.com/NativeScript/android/issues/1094
Reloadhttps://github.com/NativeScript/android/issues/1094
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests24 (24)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
https://github.com/NativeScript/android
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/1094
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/1094
AAPT2 error during Android compilationhttps://github.com/NativeScript/android/issues/1094#top
https://github.com/LeoDupont
LeoDuponthttps://github.com/LeoDupont
on Jun 26, 2018https://github.com/NativeScript/android/issues/1094#issue-335805420
NativeScript Forumhttp://forum.nativescript.org
other open issues in this repohttps://github.com/NativeScript/nativescript/issues
log.txthttps://github.com/NativeScript/android-runtime/files/2136840/log.txt
Same problem on another NativeScript repositoryhttps://github.com/NativeScript/nativescript-vscode-extension/issues/189
A clue that this problem could be solved by updating Gradle in tns-android to at least version 3.2.0https://stackoverflow.com/questions/46988102/errorcom-android-tools-aapt2-aapt2exception-aapt2-error-check-logs-for-detail
https://github.com/darind
darindhttps://github.com/darind
on Jun 27, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-400719178
@LeoDuponthttps://github.com/LeoDupont
https://github.com/LeoDupont
LeoDuponthttps://github.com/LeoDupont
on Jun 28, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-400993526
@darindhttps://github.com/darind
https://github.com/darind
darindhttps://github.com/darind
on Jun 28, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-401066711
@LeoDuponthttps://github.com/LeoDupont
https://github.com/LeoDupont
LeoDuponthttps://github.com/LeoDupont
on Jun 28, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-401069405
@darindhttps://github.com/darind
log_with_aapt2_false.txthttps://github.com/NativeScript/android-runtime/files/2145839/log_with_aapt2_false.txt
https://github.com/darind
darindhttps://github.com/darind
on Jun 29, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-401249162
@LeoDuponthttps://github.com/LeoDupont
https://github.com/LeoDupont
LeoDuponthttps://github.com/LeoDupont
on Jul 2, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-401808684
@darindhttps://github.com/darind
https://github.com/LeoDupont
LeoDuponthttps://github.com/LeoDupont
on Aug 31, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-417629976
https://stackoverflow.com/questions/46988102/errorcom-android-tools-aapt2-aapt2exception-aapt2-error-check-logs-for-detail/46988209#46988209https://stackoverflow.com/questions/46988102/errorcom-android-tools-aapt2-aapt2exception-aapt2-error-check-logs-for-detail/46988209#46988209
https://github.com/vtrifonov
vtrifonovhttps://github.com/vtrifonov
on Aug 31, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-417662798
@LeoDuponthttps://github.com/LeoDupont
https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=googlehttps://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google
https://github.com/LeoDupont
LeoDuponthttps://github.com/LeoDupont
on Sep 3, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-418061519
@vtrifonovhttps://github.com/vtrifonov
https://github.com/vtrifonov
vtrifonovhttps://github.com/vtrifonov
on Nov 26, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-441661880
@LeoDuponthttps://github.com/LeoDupont
https://github.com/vtrifonov
vtrifonovhttps://github.com/vtrifonov
on Nov 28, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-442341633
@TopGuohttps://github.com/TopGuo
https://github.com/vtrifonov
vtrifonovhttps://github.com/vtrifonov
on Nov 28, 2018https://github.com/NativeScript/android/issues/1094#issuecomment-442356954
https://github.com/vtrifonov
vtrifonovhttps://github.com/vtrifonov
on Jan 18, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-455454624
@TopGuohttps://github.com/TopGuo
https://github.com/HarshitMadhav
HarshitMadhavhttps://github.com/HarshitMadhav
on Jan 18, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-455577833
https://github.com/vtrifonov
vtrifonovhttps://github.com/vtrifonov
on Jan 20, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-455898837
@HarshitMadhavhttps://github.com/HarshitMadhav
https://github.com/HarshitMadhav
HarshitMadhavhttps://github.com/HarshitMadhav
on Jan 23, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-456875909
@vtrifonovhttps://github.com/vtrifonov
https://github.com/vtrifonov
vtrifonovhttps://github.com/vtrifonov
on Feb 18, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-464658267
vtrifonovhttps://github.com/vtrifonov
completedhttps://github.com/NativeScript/android/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 18, 2019https://github.com/NativeScript/android/issues/1094#event-2145728868
https://github.com/stefan-kolb
stefan-kolbhttps://github.com/stefan-kolb
on May 9, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-490867813
https://github.com/Aikoz
Aikozhttps://github.com/Aikoz
on May 22, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-495006528
https://github.com/appdev
appdevhttps://github.com/appdev
on Jun 13, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-501532730
https://github.com/vtrifonov
vtrifonovhttps://github.com/vtrifonov
on Jun 13, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-501610769
@appdevhttps://github.com/appdev
@sebj54https://github.com/sebj54
#1394https://github.com/NativeScript/android/issues/1394
https://github.com/PrinceDholakiya
PrinceDholakiyahttps://github.com/PrinceDholakiya
on Jul 26, 2019https://github.com/NativeScript/android/issues/1094#issuecomment-515303515
Herehttps://stackoverflow.com/a/53569236/7832102
https://github.com/Anas-jed
Anas-jedhttps://github.com/Anas-jed
on Nov 27, 2021https://github.com/NativeScript/android/issues/1094#issuecomment-980710084
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/android/issues/1094
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/1094
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.