我是Ionic框架的初学者。我已经开始构建应用程序但是我发生了这样的错误:
ANDROID_HOME=/home/raheez/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk/jre
studio
(node:1920) UnhandledPromiseRejectionWarning: CordovaError: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
我该如何解决这个问题。有人请帮我过来
答案 0 :(得分:1)
在您的系统上安装Gradle:
sudo apt-get update
sudo apt-get -y upgrade
wget https://services.gradle.org/distributions/gradle-4.7-bin.zip
sudo mkdir /opt/gradle
sudo unzip -d /opt/gradle gradle-4.7-bin.zip
export PATH=$PATH:/opt/gradle/gradle-4.7/bin
gradle -v
现在它应该可以工作。
请参阅https://www.vultr.com/docs/how-to-install-gradle-on-ubuntu-16-10。