Skip to content Skip to sidebar Skip to footer

Missing Gradle In Android Sdk (using Cordova + Ionic)

Yep, i searched about this but nothing, just things about the ANDROID_HOME path, but in my case i don't think this is the real problem. When i try to do ionic build android i get t

Solution 1:

Had exactly the same problem. This thread points out the reason behind it, and this one actually shows what to do.

In short:

  • in Android Studio uninstall Android SDK Tools
  • Download tools_r25.2.3-yourOPsystem.zip from Android Downloads. Basicly same thing, older version.
  • insert downloaded extracted tools folder in Android/sdk/ folder (MAC: /Users/username/Library/Android/sdk/tools Win: C:\Users\username\AppData\Local\Android\sdk\tools)

  • In project folder run:

$ cordova platforms remove android

$ cordova platforms add android

Solution 2:

On Linux android studio version-162.3871768-linux copy paste

\Android Studio\plugins\android\lib\templates\

to Sdk/tools/

Solution 3:

You need to update ANDROID_HOME variable to point the android-sdk folder https://stackoverflow.com/a/32507036/344895

Solution 4:

you have to upgrade your cordova library

cordova platform update android@6.2.1

Solution 5:

I tested upgrade cordova to version 6.5 and extract tools SDK. Nothing helps. In my case I have Android Studio installation.

SOLUTION: Please find file gradle-wrapper.jar in your Android Studio installation (in may case ..\Android Studio\plugins\android\lib\templates\gradle\wrapper\gradle\wrapper\ ). Then copy whole directory templates to SDK location in subfolder tools.

Post a Comment for "Missing Gradle In Android Sdk (using Cordova + Ionic)"