Title: Start new app error · Issue #11010 · NativeScript/NativeScript · GitHub
Open Graph Title: Start new app error · Issue #11010 · NativeScript/NativeScript
X Title: Start new app error · Issue #11010 · NativeScript/NativeScript
Description: Issue Description When I create a new app and run it on Android, I get the following error: └─$ ns run android Searching for devices... Copying template files... Platform android successfully added. v9.0.1 Preparing project... Using @nat...
Open Graph Description: Issue Description When I create a new app and run it on Android, I get the following error: └─$ ns run android Searching for devices... Copying template files... Platform android successfully added...
X Description: Issue Description When I create a new app and run it on Android, I get the following error: └─$ ns run android Searching for devices... Copying template files... Platform android successfully added...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/11010
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Start new app error","articleBody":"### Issue Description\n\nWhen I create a new app and run it on Android, I get the following error:\n\n\n```shell\n└─$ ns run android \nSearching for devices...\nCopying template files...\nPlatform android successfully added. v9.0.1\nPreparing project...\n\nUsing @nativescript/android which requires nsconfig.json to be present.\nWriting nsconfig.json based on the values set in nativescript.config.(js|ts).\nYou may add nsconfig.json to .gitignore as the CLI will regenerate it as necessary.\n\nThe bundler configuration file /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/webpack.config.js does not exist. Ensure the file exists, or update the path in nativescript.config.(js|ts).\n```\n\nThen I create the requested file, but when I run it again, I get the same error:\n\n```shell\n└─$ ns run android \nSearching for devices...\nCopying template files...\nPlatform android successfully added. v9.0.1\nPreparing project...\n\nUsing @nativescript/android which requires nsconfig.json to be present.\nWriting nsconfig.json based on the values set in nativescript.config.(js|ts).\nYou may add nsconfig.json to .gitignore as the CLI will regenerate it as necessary.\n\nwebpack is watching the files...\nasset vendor.js 7.15 MiB [emitted] (name: vendor) (id hint: defaultVendor)\nasset bundle.js 376 KiB [emitted] (name: bundle)\nasset runtime.js 91.5 KiB [emitted] (name: runtime)\nasset tns_modules/inspector_modules.js 790 bytes [emitted] (name: tns_modules/inspector_modules)\nEntrypoint bundle 7.61 MiB = runtime.js 91.5 KiB vendor.js 7.15 MiB bundle.js 376 KiB\nEntrypoint tns_modules/inspector_modules 7.24 MiB = runtime.js 91.5 KiB vendor.js 7.15 MiB tns_modules/inspector_modules.js 790 bytes\norphan modules 108 KiB [orphan] 26 modules\nruntime modules 26.5 KiB 12 modules\nmodules by path ./node_modules/@nativescript/ 1.65 MiB 223 modules\nmodules by path ./node_modules/css-tree/lib/ 318 KiB 123 modules\nmodules by path ./node_modules/source-map-js/ 104 KiB\n ./node_modules/source-map-js/source-map.js 405 bytes [built] [code generated]\n + 10 modules\nmodules by path ./app/ 136 KiB 7 modules\nmodules by path ./node_modules/@csstools/ 132 KiB\n ./node_modules/@csstools/css-calc/dist/index.mjs 28.3 KiB [built] [code generated]\n + 4 modules\nmodules by path ./node_modules/css-what/dist/esm/*.js 24.9 KiB\n ./node_modules/css-what/dist/esm/index.js 121 bytes [built] [code generated]\n + 3 modules\n+ 4 modules\nwebpack 5.104.1 compiled successfully in 3724 ms\nWebpack compilation complete. Watching for file changes.\n ~ applying user-defined configuration from /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/App_Resources/Android/before-plugins.gradle\nBuilt aar for @nativescript/core\nUpdating runtime package.json with configuration values...\nProject successfully prepared (android)\nBuilding project...\nGradle build...\n + applying user-defined configuration from /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/App_Resources/Android/before-plugins.gradle\n + applying user-defined configuration from /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/App_Resources/Android/before-plugins.gradle\n + setting applicationId\n + applying user-defined configuration from /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/App_Resources/Android/app.gradle\n + adding nativescript runtime package dependency: nativescript-optimized-with-inspector\n + adding aar plugin dependency: /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/node_modules/@nativescript/core/platforms/android/winter_tc-release.aar\n + adding aar plugin dependency: /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/node_modules/@nativescript/core/platforms/android/widgets-release.aar\n + adding aar plugin dependency: /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/node_modules/@nativescript/core/platforms/android/core.aar\nNote: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\nNote: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\nProject successfully built.\nBuild time: 51.217 s.\nThe build result is located at: /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/platforms/android/app/build/outputs/apk/debug/app-debug.apk\nInstalling on device 0052361126...\nSuccessfully installed on device with identifier '0052361126'.\nUnable to apply changes on device: 0052361126. Error is: Invalid version. Must be a string. Got type \"object\"..\n```\n\nEnvironment\n\n```shell\n└─$ ns doctor android\n✔ Getting environment information \n\nNo issues were detected.\n✔ Your ANDROID_HOME environment variable is set and points to correct directory.\n✔ Your adb from the Android SDK is correctly installed.\n✔ The Android SDK is installed.\n✔ A compatible Android SDK for compilation is found.\n✔ Javac is installed and is configured properly.\n✔ The Java Development Kit (JDK) is installed and is configured properly.\n✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.\n✔ Getting NativeScript components versions information...\n⚠ Update available for component nativescript. Your current version is 9.0.0-alpha.14-next-11-08-2025-19196807358 and the latest available version is 9.0.1.\n✔ Component @nativescript/core has 9.0.8 version and is up to date.\n✖ Component @nativescript/android is not installed.\n```\n\n### Reproduction\n\n_No response_\n\n### Relevant log output (if applicable)\n\n```shell\n\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/ricardobocchi","@type":"Person","name":"ricardobocchi"},"datePublished":"2025-12-18T14:21:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/11010/NativeScript/issues/11010"}
| 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:c905dca4-c4c2-9f2e-6dbb-bf019a67b778 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 885A:1C08BC:13BBEF1:1A58B80:6964A16F |
| html-safe-nonce | 53ccf26edf110b797cdf76379e35361bffabe17dbfd329ca735ef7dbad07c821 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODVBOjFDMDhCQzoxM0JCRUYxOjFBNThCODA6Njk2NEExNkYiLCJ2aXNpdG9yX2lkIjoiMTE3MDIxMTM3Mzk2NjQ2NzQzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0ab7c9b382da240f7b5751599f9af75b8c9d619129a89339ac72e4a99137969a |
| hovercard-subject-tag | issue:3743371300 |
| 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/11010/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf5d0c91b0c6ca032cfd510be2731d79eea5fa47673f1e2f4f32add089ff28ca/NativeScript/NativeScript/issues/11010 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf5d0c91b0c6ca032cfd510be2731d79eea5fa47673f1e2f4f32add089ff28ca/NativeScript/NativeScript/issues/11010 |
| og:image:alt | Issue Description When I create a new app and run it on Android, I get the following error: └─$ ns run android Searching for devices... Copying template files... Platform android successfully added... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ricardobocchi |
| hostname | github.com |
| expected-hostname | github.com |
| None | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| 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 | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width