-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
bug-pending-triageReported bug, pending triage to confirm.Reported bug, pending triage to confirm.
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 @nativescript/android which requires nsconfig.json to be present.
Writing nsconfig.json based on the values set in nativescript.config.(js|ts).
You may add nsconfig.json to .gitignore as the CLI will regenerate it as necessary.
The 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).Then I create the requested file, but when I run it again, I get the same error:
└─$ ns run android
Searching for devices...
Copying template files...
Platform android successfully added. v9.0.1
Preparing project...
Using @nativescript/android which requires nsconfig.json to be present.
Writing nsconfig.json based on the values set in nativescript.config.(js|ts).
You may add nsconfig.json to .gitignore as the CLI will regenerate it as necessary.
webpack is watching the files...
asset vendor.js 7.15 MiB [emitted] (name: vendor) (id hint: defaultVendor)
asset bundle.js 376 KiB [emitted] (name: bundle)
asset runtime.js 91.5 KiB [emitted] (name: runtime)
asset tns_modules/inspector_modules.js 790 bytes [emitted] (name: tns_modules/inspector_modules)
Entrypoint bundle 7.61 MiB = runtime.js 91.5 KiB vendor.js 7.15 MiB bundle.js 376 KiB
Entrypoint tns_modules/inspector_modules 7.24 MiB = runtime.js 91.5 KiB vendor.js 7.15 MiB tns_modules/inspector_modules.js 790 bytes
orphan modules 108 KiB [orphan] 26 modules
runtime modules 26.5 KiB 12 modules
modules by path ./node_modules/@nativescript/ 1.65 MiB 223 modules
modules by path ./node_modules/css-tree/lib/ 318 KiB 123 modules
modules by path ./node_modules/source-map-js/ 104 KiB
./node_modules/source-map-js/source-map.js 405 bytes [built] [code generated]
+ 10 modules
modules by path ./app/ 136 KiB 7 modules
modules by path ./node_modules/@csstools/ 132 KiB
./node_modules/@csstools/css-calc/dist/index.mjs 28.3 KiB [built] [code generated]
+ 4 modules
modules by path ./node_modules/css-what/dist/esm/*.js 24.9 KiB
./node_modules/css-what/dist/esm/index.js 121 bytes [built] [code generated]
+ 3 modules
+ 4 modules
webpack 5.104.1 compiled successfully in 3724 ms
Webpack compilation complete. Watching for file changes.
~ applying user-defined configuration from /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/App_Resources/Android/before-plugins.gradle
Built aar for @nativescript/core
Updating runtime package.json with configuration values...
Project successfully prepared (android)
Building project...
Gradle build...
+ applying user-defined configuration from /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/App_Resources/Android/before-plugins.gradle
+ applying user-defined configuration from /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/App_Resources/Android/before-plugins.gradle
+ setting applicationId
+ applying user-defined configuration from /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/App_Resources/Android/app.gradle
+ adding nativescript runtime package dependency: nativescript-optimized-with-inspector
+ adding aar plugin dependency: /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/node_modules/@nativescript/core/platforms/android/winter_tc-release.aar
+ adding aar plugin dependency: /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/node_modules/@nativescript/core/platforms/android/widgets-release.aar
+ adding aar plugin dependency: /mnt/data/sources/repositories/mobloja/mobile/vue/loja/teste/test/node_modules/@nativescript/core/platforms/android/core.aar
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Project successfully built.
Build time: 51.217 s.
The 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
Installing on device 0052361126...
Successfully installed on device with identifier '0052361126'.
Unable to apply changes on device: 0052361126. Error is: Invalid version. Must be a string. Got type "object"..Environment
└─$ ns doctor android
✔ Getting environment information
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ 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.
✔ Getting NativeScript components versions information...
⚠ 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.
✔ Component @nativescript/core has 9.0.8 version and is up to date.
✖ Component @nativescript/android is not installed.Reproduction
No response
Relevant log output (if applicable)
Environment
No response
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct
coderabbitai and kimonmeier
Metadata
Metadata
Assignees
Labels
bug-pending-triageReported bug, pending triage to confirm.Reported bug, pending triage to confirm.