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

When running ionic build android


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

Respondent: ahmy

Solution #2:

Update manually Android studio using SDK Manager

enter image description here

please refer this link.

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