You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android build fails in case the path to project has space and the project has a plugin that should be build. For example, in case you have nativescript-mapbox as a dependency and you place your project in a directory which has space in its name, the build/run commands will fail as CLI is unable to build the plugin.
Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Create application with space in the name: $ tns create "my app"
Navigate to the app: $ cd my\ app
Add nativescript-mapbox plugin: $ npm i --save nativescript-mapbox
Try building the application for android: $ tns build android
The build will fail with error:
Failed to build plugin nativescript-mapbox :
Error: Command failed: gradlew.bat -p D:\Work\nativescript-cli\scratch\my app\platforms\tempPlugin\nativescript_mapbox assembleRelease -PcompileSdk=android-27 -PbuildToolsVersion=27.0.3 -PsupportVersion=26.0.0-alpha1
FAILURE: Build failed with an exception.
* What went wrong:
The specified project directory 'D:\Work\nativescript-cli\scratch\my' does not exist.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 9s
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
No
The text was updated successfully, but these errors were encountered:
I had this problem today from nowhere, but with vue-cli-template.
Unable to apply changes on device Error is: Command gradlew.bat failed with exit code 1.
The problem in mapbox but removing the mapbox only from package.json didnt help me in this case, i had to reinstall the vue-cli-template. If you have the same problem and you are using vue-cli-template, just reinstall your project and it should work.
Before you reinstall the template, make sure your main.js file is backed up otherwise it overwrites your main.js file and you will be mad as I was 👎 👎 👎
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?
Yes
Tell us about the problem
Android build fails in case the path to project has space and the project has a plugin that should be build. For example, in case you have
nativescript-mapbox
as a dependency and you place your project in a directory which has space in its name, the build/run commands will fail as CLI is unable to build the plugin.Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
$ tns create "my app"
$ cd my\ app
$ npm i --save nativescript-mapbox
$ tns build android
The build will fail with error:
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
No
The text was updated successfully, but these errors were encountered: