Error: could not find gradle shell in Android SDK (cordova + ionic)

When running android ion build

ANDROID_HOME=/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: /Library/Android/sdk/tools/templates/gradle/wrapper 

I tried updating sdk using android update sdk -u

+6
source share
4 answers

update Android project to Cordova Android 6.2.1

 ionic platform update android@6.2.1 

for more details check the following links https://cordova.apache.org/announcements/2017/04/05/android-release.html

+5
source

This worked for me for an existing ion project:

 npm install -g cordova cd <project_dir> cordova platform update android 
+1
source

Just install Gradle with the PATH declaration working for me.

0
source

Source: https://habr.com/ru/post/1014955/


All Articles