René's URL Explorer Experiment


Title: AndroidManifest.xml package attribute error with AGP 8.x and newer build tools · Issue #10755 · NativeScript/NativeScript · GitHub

Open Graph Title: AndroidManifest.xml package attribute error with AGP 8.x and newer build tools · Issue #10755 · NativeScript/NativeScript

X Title: AndroidManifest.xml package attribute error with AGP 8.x and newer build tools · Issue #10755 · NativeScript/NativeScript

Description: Issue Description Environment NativeScript CLI: 8.6.5 @nativescript/core: 8.9.2 @nativescript/android: 8.9.1 Android SDK: 30 (also tested with 34) Build Tools: 30.0.3 (also tested with 34.0.0) AGP: 7.0.4 (forced via before-plugins.gradle...

Open Graph Description: Issue Description Environment NativeScript CLI: 8.6.5 @nativescript/core: 8.9.2 @nativescript/android: 8.9.1 Android SDK: 30 (also tested with 34) Build Tools: 30.0.3 (also tested with 34.0.0) AGP:...

X Description: Issue Description Environment NativeScript CLI: 8.6.5 @nativescript/core: 8.9.2 @nativescript/android: 8.9.1 Android SDK: 30 (also tested with 34) Build Tools: 30.0.3 (also tested with 34.0.0) AGP:...

Opengraph URL: https://github.com/NativeScript/NativeScript/issues/10755

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AndroidManifest.xml package attribute error with AGP 8.x and newer build tools","articleBody":"### Issue Description\n\n## Environment\n- **NativeScript CLI:** 8.6.5\n- **@nativescript/core:** 8.9.2\n- **@nativescript/android:** 8.9.1\n- **Android SDK:** 30 (also tested with 34)\n- **Build Tools:** 30.0.3 (also tested with 34.0.0)\n- **AGP:** 7.0.4 (forced via before-plugins.gradle)\n- **OS:** macOS 14.3.0\n\n## Issue Description\nThe NativeScript core plugin generates `AndroidManifest.xml` with `package=\"org.nativescript.core\"` attribute in the `\u003cmanifest\u003e` tag, which is no longer supported by newer Android Gradle Plugin versions (AGP 7.2+).\n\n## Error Message\nFAILURE: Build failed with an exception.\nWhat went wrong:\nExecution failed for task ':processReleaseManifest'.\n\u003e A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction\n\u003e Incorrect package=\"org.nativescript.core\" found in source AndroidManifest.xml: /path/to/platforms/tempPlugin/core/src/main/AndroidManifest.xml.\nSetting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.\nRecommendation: remove package=\"org.nativescript.core\" from the source AndroidManifest.xml\n\n### Reproduction\n\n```shell\n## Steps to Reproduce\n1. Create a new NativeScript project or use existing one\n2. Run `ns build android`\n3. Error occurs during plugin build phase\n\n## Attempted Solutions (All Failed)\n1. **Manual patching:** Created scripts to remove `package` attribute after prepare/build\n2. **CLI hooks:** Tried `after-prepare` and `before-build` hooks\n3. **Gradle patching:** Attempted to patch manifest during build process\n4. **Upgrading:** Updated to latest NativeScript versions (8.9.x)\n5. **Downgrading:** Downgraded to SDK 30, build tools 30.0.3, AGP 7.0.4\n6. **Postinstall scripts:** Automated patching after npm install\n\n### Relevant log output (if applicable)\n\n## Root Cause Analysis\nThe issue is that the NativeScript core plugin generates the manifest dynamically during build, and there is no static source file in `node_modules` to patch. The manifest is regenerated after every prepare/build, making all local workarounds ineffective.\n\n## Expected Behavior\nThe NativeScript core plugin should generate `AndroidManifest.xml` without the `package` attribute, or use the `namespace` attribute instead, to be compatible with newer AGP versions.\n\n## Impact\nThis prevents building NativeScript projects with newer Android build tools, forcing developers to use outdated tooling or abandon NativeScript for Android development.\n\n## Additional Notes\n- The manifest is generated at: `platforms/tempPlugin/core/src/main/AndroidManifest.xml`\n- No static source file exists in `node_modules/@nativescript/core/platforms/android/`\n- This affects all NativeScript 8.x projects using newer Android build tools\n```\n\n### Environment\n\n_No response_\n\n### Please accept these terms\n\n- [x] I have searched the [existing issues](https://github.com/NativeScript/NativeScript/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\n- [x] This is a bug report\n- [x] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/guilpablo","@type":"Person","name":"guilpablo"},"datePublished":"2025-06-30T02:47:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/10755/NativeScript/issues/10755"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4fba4b2a-7aa9-fb64-fadd-ef41b77ca9f7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCF22:D3D20:6329:7E69:696510E1
html-safe-nonce8fbfd0d1739c73a916b826175313b4ae7df87c42c24bcbfce7c0e101d681cd86
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjIyOkQzRDIwOjYzMjk6N0U2OTo2OTY1MTBFMSIsInZpc2l0b3JfaWQiOiIyNTI0NzYwMDM2Njc5Njg0MzIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf62477f90b7d5ee60bd730b065a30f7ff778a03054d02d9537e473a25094acb3
hovercard-subject-tagissue:3186939649
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/NativeScript/10755/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ae45966733c81e9e3244d6c6dd12e5cb4a1ef3337c2eb9a4a50d401c66ef4087/NativeScript/NativeScript/issues/10755
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ae45966733c81e9e3244d6c6dd12e5cb4a1ef3337c2eb9a4a50d401c66ef4087/NativeScript/NativeScript/issues/10755
og:image:altIssue Description Environment NativeScript CLI: 8.6.5 @nativescript/core: 8.9.2 @nativescript/android: 8.9.1 Android SDK: 30 (also tested with 34) Build Tools: 30.0.3 (also tested with 34.0.0) AGP:...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameguilpablo
hostnamegithub.com
expected-hostnamegithub.com
None361e28552f448e2f3c84aa6d1d70cc09abfcd936966fa76682f0659b4f5f51d0
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
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
releasebb94fc71fe8da8a45636ada2c7618bc2b49b9cbe
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/10755#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F10755
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F10755
Sign up https://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%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/issues/10755
Reloadhttps://github.com/NativeScript/NativeScript/issues/10755
Reloadhttps://github.com/NativeScript/NativeScript/issues/10755
NativeScript https://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Please reload this pagehttps://github.com/NativeScript/NativeScript/issues/10755
Notifications https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Fork 1.7k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Star 25.4k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Code https://github.com/NativeScript/NativeScript
Issues 867 https://github.com/NativeScript/NativeScript/issues
Pull requests 59 https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects 0 https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/NativeScript/NativeScript/security
Please reload this pagehttps://github.com/NativeScript/NativeScript/issues/10755
Insights https://github.com/NativeScript/NativeScript/pulse
Code https://github.com/NativeScript/NativeScript
Issues https://github.com/NativeScript/NativeScript/issues
Pull requests https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/10755
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/10755
AndroidManifest.xml package attribute error with AGP 8.x and newer build toolshttps://github.com/NativeScript/NativeScript/issues/10755#top
bug-pending-triageReported bug, pending triage to confirm.https://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22bug-pending-triage%22
https://github.com/guilpablo
https://github.com/guilpablo
guilpablohttps://github.com/guilpablo
on Jun 30, 2025https://github.com/NativeScript/NativeScript/issues/10755#issue-3186939649
existing issueshttps://github.com/NativeScript/NativeScript/issues
StackOverflowhttps://stackoverflow.com/questions/tagged/nativescript
Code of Conducthttps://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc
bug-pending-triageReported bug, pending triage to confirm.https://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22bug-pending-triage%22
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.