gpt4 book ai didi

android - ionic2 android构建错误

转载 作者:太空狗 更新时间:2023-10-29 16:28:49 25 4
gpt4 key购买 nike

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

ionic run android

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

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

我的 ionic 信息是

    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 并运行下面的代码

sudo apt-get remove gradle

然后跑了

ionic run android

自己安装Gradle,问题解决

关于android - ionic2 android构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43863744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com