gradle问题 cordova

cordova升级7.0后,运行android

>app

ionic build android  或者ionic

cordova build android     报出错误测试

Error: 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

须要下载并安装gradle:gradle-x.x-bin.zipgradle

gradle地址:(https://services.gradle.org/distributions)ui

安装后添加环境变量路径:spa

1 Gradle_path = D:\soft\gradle-4.12 PATH=%GRADLE_HOME%\bin\;

注意: gradle-4.1要求jdk在7.0以上code

测试: gradle -vcordova

从新cmd打开命令窗口。blog

执行:ionic build android 

相关文章
相关标签/搜索