当我运行命令ionic cordova run android
以便在devide上运行应用程序时,我收到以下错误...
> cordova run android
[11:19:06] lint finished in 3.93 s
ANDROID_HOME=/root/android-sdks
JAVA_HOME=/usr/lib/jvm/java-8-oracle
FAILURE: Could not determine which tasks to execute.
* What went wrong:
Task 'wrapper' not found in root project 'android'.
* Try:
Run gradle tasks to get a list of available tasks.
BUILD FAILED
Total time: 1.93 secs
Error: /usr/share/gradle/bin/gradle: Command failed with exit code 1
[ERROR] An error occurred while running cordova run android (exit code 1).
请帮我解决这个问题。提前谢谢。
以下是信息的输出:
离子信息
cli包:(/ usr / local / lib / node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
全球套餐:
Cordova CLI : 7.0.1
本地包裹:
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.6.0
系统:
Node : v8.4.0
npm : 5.3.0
OS : Linux 3.13
答案 0 :(得分:0)
您应该尝试在与以前相同的文件夹中安装最新的gradle版本。你可以找到它here。
答案 1 :(得分:0)
通过安装输入脚本\ n“npm install -g tsd
”解决了这个问题。
在同一节点8.4.0版本上创建新项目ionic cordova run android
对我有用。