Title: Android build fails when App_Resources folder is renamed · Issue #3400 · NativeScript/nativescript-cli · GitHub
Open Graph Title: Android build fails when App_Resources folder is renamed · Issue #3400 · NativeScript/nativescript-cli
X Title: Android build fails when App_Resources folder is renamed · Issue #3400 · NativeScript/nativescript-cli
Description: Please, provide the details below: Tell us about the problem If you rename App_Resources folder and set the new path in nsconfig.json - build fails. Which platform(s) does your issue occur on? Android Please provide the following version...
Open Graph Description: Please, provide the details below: Tell us about the problem If you rename App_Resources folder and set the new path in nsconfig.json - build fails. Which platform(s) does your issue occur on? Andr...
X Description: Please, provide the details below: Tell us about the problem If you rename App_Resources folder and set the new path in nsconfig.json - build fails. Which platform(s) does your issue occur on? Andr...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/3400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android build fails when App_Resources folder is renamed","articleBody":"## Please, provide the details below:\r\n\r\n### Tell us about the problem\r\nIf you rename `App_Resources` folder and set the new path in `nsconfig.json` - build fails.\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: [PR 3356 Kddimitrov/nsconfig app folder](https://github.com/NativeScript/nativescript-cli/pull/3356)\r\n- Cross-platform modules: `3.4.1`\r\n- Runtime(s): \r\n\"tns-android\" `3.4.1-2018-02-27-03`\r\n\"tns-ios\" `3.4.1`\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n1. `tns create SomeApp`\r\n2. Rename `App_Resources` folder\r\n3. In project root folder create `nsconfig.json` with the new path to `App_Resources` folder like this:\r\n4. tns run android\r\n\r\n```\r\n{\r\n \"appResourcesPath\": \"app/My_App_Resources\"\r\n}\r\n```\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\nHere is the log\r\n```\r\nSearching for devices...\r\nPreparing project...\r\nSuccessfully prepared plugin nativescript-theme-core for android.\r\nSuccessfully prepared plugin tns-core-modules for android.\r\nSuccessfully prepared plugin tns-core-modules-widgets for android.\r\nProject successfully prepared (Android)\r\nBuilding project...\r\nGradle build...\r\n + applying user-defined configuration from .../AppNSConfig3/app/My_App_Resources/Android/app.gradle\r\n + adding nativescript runtime package dependency: nativescript-optimized\r\n + adding aar plugin dependency: .../AppNSConfig3/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar\r\nfalse\r\n.../AppNSConfig3/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:28:23-37: AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/icon').\r\n \r\n.../AppNSConfig3/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:35:28-52: AAPT: No resource found that matches the given name (at 'theme' with value '@style/LaunchScreenTheme').\r\n \r\n.../AppNSConfig3/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:25: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').\r\n\r\n.../AppNSConfig3/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:31: error: Error: No resource found that matches the given name (at 'theme' with value '@style/LaunchScreenTheme').\r\n\r\n\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':app:processDebugResources'.\r\n> com.android.ide.common.process.ProcessException: Failed to execute aapt\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\n* Get more help at https://help.gradle.org\r\n\r\nBUILD FAILED in 15s\r\nUnable to apply changes on device: emulator-5554. Error is: Command ./gradlew failed with exit code 1.\r\n```\r\n","author":{"url":"https://github.com/Natalia-Hristova","@type":"Person","name":"Natalia-Hristova"},"datePublished":"2018-02-27T17:32:21Z","url":"https://github.com/NativeScript/nativescript-cli/issues/3400"}
| 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:89a36d1f-6da8-1caf-81ba-a75438099784 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E16:1D86C4:15FA08D:1BF0AE9:6B013356 |
| html-safe-nonce | d7083ff9a96ad9f483f72da78d0911e4c98123f34b030c207b05a1414810a1f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTE2OjFEODZDNDoxNUZBMDhEOjFCRjBBRTk6NkIwMTMzNTYiLCJ2aXNpdG9yX2lkIjoiNjE5NzM3NjEyNjE1NTgzMDEwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7d76b378a13bba8b9ecf5e49065f6eb32e44e29a764b62355a9cc00a0980d858 |
| hovercard-subject-tag | issue:300724609 |
| 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/nativescript-cli/3400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a7453ea3f16cb9b67a2a9ed6499215cc7ac0d5765d3ee9d808e3c5d63c08216/NativeScript/nativescript-cli/issues/3400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a7453ea3f16cb9b67a2a9ed6499215cc7ac0d5765d3ee9d808e3c5d63c08216/NativeScript/nativescript-cli/issues/3400 |
| og:image:alt | Please, provide the details below: Tell us about the problem If you rename App_Resources folder and set the new path in nsconfig.json - build fails. Which platform(s) does your issue occur on? Andr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Natalia-Hristova |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| 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