ThunderBolt
ThunderBolt

Reputation: 441

Error: Could not find gradle wrapper within Android SDK (cordova + ionic)

When running ionic build android

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

Upvotes: 7

Views: 9927

Answers (4)

Matti Lehtinen
Matti Lehtinen

Reputation: 1764

This worked for me for existing ionic project:

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

Upvotes: 1

Mezoo
Mezoo

Reputation: 769

Just install Gradle with PATH declaration working for me.

Upvotes: 0

ahmy
ahmy

Reputation: 131

update android project to cordova-android 6.2.1

ionic platform update [email protected]

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

Upvotes: 6

Uditha Prasad
Uditha Prasad

Reputation: 715

Update manually Android studio using SDK Manager

enter image description here

please refer this link.

https://forum.ionicframework.com/t/error-could-not-find-gradle-wrapper-within-android-sdk-might-need-to-update-yo-ur-android-sdk/22056

Upvotes: 2

Related Questions