tns platform android is failing
See original GitHub issueEnvironment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 7.0.4
- Cross-platform modules: No Such Modules
- Android Runtime:
- Plugin(s):No Plugin
Describe the bug
I ran tns platform add android
and I get following error
ubuntu@ubuntu-ck0xxx:~/Projects/nativescript/test$ tns platform add android
Copying template files...
Command failed: npm view @nativescript/android dist-tags --json
To Reproduce I setup the environment on ubuntu, created a fresh project and got error while adding android.
Expected behavior
It should add the platform
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Troubleshooting - NativeScript Docs
tns run android throws Java (javac) error. Solution: Solution provided by KristiyanFxy a member of the NativeScript community. Link to original solution here....
Read more >When uninstall nativescript plugin and run 'tns run android ...
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED....
Read more >Best day-to-day Development workflow to avoid "Failed to find ...
tns platform remove android. tns platform add android. tns prepare android. tns build android. ALL of that gets it back to BUILDing… But...
Read more >Building Android MDK client with NativeScript Plugin
tns run android --device <device identifier> ... MDK Client/node_modules/@nativescript-rtl/ui/platforms/android/ui.aar.
Read more >NativeScript 5.4 Build Failures - fluentReports
FAILURE : Build failed with an exception. ... Execution failed for task ':app:processDebugManifest'. ... tns platform add android@next.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I uninstalled npm which i installed from apt and installed it again using nvm, and now it works fine
Going to jump in here real quick as I run on linux also.
whereis npm
npm --version && tns platform add android
npm i -g nativescript@7.0.11
– I know version 7.0.11 works great on linux as that is what I have currently installed. But I don’t recall any issues with the earlier versions (but I tend to upgrade as needed)