Question

[Solved] 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

Solution #1:

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

Respondent: ahmy

Solution #2:

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

Respondent: Uditha Prasad

Solution #3:

This worked for me for existing ionic project:

npm install -g cordova
cd <project_dir>
cordova platform update android
Respondent: Matti Lehtinen

Solution #4:

Just install Gradle with PATH declaration working for me.

Respondent: Mezoo

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Most Popular

To Top
India and Pakistan’s steroid-soaked rhetoric over Kashmir will come back to haunt them both clenbuterol australia bossier man pleads guilty for leadership role in anabolic steriod distribution conspiracy