ionic2 android构建错误 [英] ionic2 android build error

查看:79
本文介绍了ionic2 android构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行离子2应用程序时

When I try to run ionic 2 application

ionic run android

它会停止出现如下错误。请帮我解决这个问题

It stops leaving an error as below. Please help me to fix this problem

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.435 secs

Error: /usr/share/gradle/bin/gradle: Command failed with exit code 1

我的离子信息是

    Cordova CLI: 7.0.0 
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.2
Node Version: v7.4.0
Xcode version: Not installed

平台列表是

Installed platforms:
  android 6.2.3
Available platforms: 
  blackberry10 ~3.8.0 (deprecated)
  browser ~4.1.0
  ubuntu ~4.3.4 (deprecated)
  webos ~3.7.


推荐答案

刚刚发现问题,

我只是删除Gradle并在代码下面运行

I just remove Gradle and run below code

sudo apt-get remove gradle

并且

ionic run android

安装Gradle本身,问题解决了

Its install Gradle itself, The problem was solved

这篇关于ionic2 android构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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