离子gradle路径问题

时间:2018-08-09 15:25:20

标签: ionic-framework gradle

我是离子,科尔多瓦和gradle的新手。我在尝试命令ionic cordova build android --release

时遇到以下问题
Android Studio project detected
ANDROID_HOME=C:\Users\Jindu\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181
studio
(node:7964) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): 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
(node:7964) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the
future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

我尝试了许多提供的解决方案,例如-一个建议将gradle安装在sdk tools文件夹中,在环境变量中设置gradle的路径,但是都失败了。

有人可以帮忙吗?

0 个答案:

没有答案