gradle問題 cordova


cordova升級7.0后,運行

>

ionic build android  或者

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.zip

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

安裝后添加環境變量路徑:

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

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

測試: gradle -v

重新cmd打開命令窗口。

執行:ionic build android 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM