I am using vue-cli template to make a wallpaper app.After installing nativescript downloader i trying to debug it using npm run debug:android command.but it shows error.
Error Log
wallpaper@1.0.0 debug:android /home/darahat/Desktop/Wallpaper
npm run debug -- --env.android
wallpaper@1.0.0 debug /home/darahat/Desktop/Wallpaper
webpack --watch --env.tnsAction debug "--env.android"
info: Copying NativeScript plugins to template dependencies...
info: Preparing NativeScript application from template...
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN wallpaper@ No repository field.
info: Bundling application for android...
Webpack is watching the files…
Executing post-build scripts
info: Debugging NativeScript application...
Searching for devices...
Copying template files...
Installing tns-android
+ tns-android@4.0.1
added 1 package in 3.646s
Project successfully created.
Preparing project...
Successfully prepared plugin nativescript-cardview for android.
Successfully prepared plugin nativescript-downloader for android.
Successfully prepared plugin nativescript-theme-core for android.
Successfully prepared plugin nativescript-vue for android.
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Built aar for nativescript-downloader
Project successfully prepared (Android)
Building project...
Gradle build...
+ applying user-defined configuration from /home/darahat/Desktop/Wallpaper/dist/app/App_Resources/Android/app.gradle
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
Configuration 'debugCompile' in project ':app' is deprecated. Use 'debugImplementation' instead.
+ adding nativescript runtime package dependency: nativescript-optimized
+ adding aar plugin dependency: /home/darahat/Desktop/Wallpaper/dist/node_modules/nativescript-downloader/platforms/android/nativescript_downloader.aar
+ adding aar plugin dependency: /home/darahat/Desktop/Wallpaper/dist/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
> Unable to apply changes on device: 0123456789ABCDEF. Error is: Command ./gradlew failed with exit code 1.'
I am using vue-cli template to make a wallpaper app.After installing nativescript downloader i trying to debug it using npm run debug:android command.but it shows error.
Error Log
Json file
at last line of Error log it shows that command ./gradlew failed with exit code.i cant figure out why the problem is occurring.