错误是:命令./gradlew失败,退出代码为1 [英] Error is: Command ./gradlew failed with exit code 1

查看:121
本文介绍了错误是:命令./gradlew失败,退出代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vue-cli构建本机android壁纸应用程序.我正在尝试使用nativescript的nativescript-downloader插件制作图像下载器.使用npm安装nativescript-downloader后,当我尝试使用npm进行调试时,请运行--save nativescript-downloader,运行debug:android会收到此错误.错误日志如下.

I am building an native android Wallpaper app using vue-cli. i am trying to make an image downloader using nativescript-downloader plugin of nativescript. After installing nativescript-downloader using npm install --save nativescript-downloader when I trying to debug using npm run debug:android getting this Error.Error log is given below.

wallpaper@1.0.0调试:android/home/darahat/Desktop/Wallpapernpm运行调试---env.android

wallpaper@1.0.0 debug:android /home/darahat/Desktop/Wallpaper npm run debug -- --env.android

wallpaper@1.0.0调试/home/darahat/Desktop/Wallpaperwebpack --watch --env.tns动作调试"--env.android"

wallpaper@1.0.0 debug /home/darahat/Desktop/Wallpaper webpack --watch --env.tnsAction debug "--env.android"

信息:正在将NativeScript插件复制到模板依赖项中...信息:从模板准备NativeScript应用程序...npm WARN wallpaper @没有存储库字段.

info: Copying NativeScript plugins to template dependencies... info: Preparing NativeScript application from template... npm WARN wallpaper@ No repository field.

信息:捆绑用于Android的应用程序...

info: Bundling application for android...

Webpack正在监视文件…

Webpack is watching the files…

执行构建后脚本

信息:调试NativeScript应用程序...正在搜寻装置...正在准备项目...项目准备成功(Android)建筑项目...摇篮建立...+从/home/darahat/Desktop/Wallpaper/dist/app/App_Resources/Android/app.gradle应用用户定义的配置项目':app'中的配置'compile'已弃用.请改用实现".项目':app'中的配置'debugCompile'已弃用.请改用"debugImplementation".+添加nativescript运行时程序包依赖项:nativescript优化的+添加aar插件依赖项:/home/darahat/Desktop/Wallpaper/dist/node_modules/nativescript-downloader/platforms/android/nativescript_downloader.aar+添加aar插件依赖项:/home/darahat/Desktop/Wallpaper/dist/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar

info: Debugging NativeScript application... Searching for devices... Preparing project... 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

无法在设备上应用更改:0123456789ABCDEF.错误是:命令./gradlew失败,退出代码为1

Unable to apply changes on device: 0123456789ABCDEF. Error is: Command ./gradlew failed with exit code 1

推荐答案

  1. 在命令行中,使用命令 cd 在项目的Android文件夹中移动.

  1. In the command line use the command cd to move inside the Android folder of your project.

转到其网站上的

3.复制,粘贴并运行图片中突出显示的命令后,应该已全部设置

3. After copying, pasting and running the command highlighted in the picture you should be all set

享受美好的一天

这篇关于错误是:命令./gradlew失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆