[SOLVED] Update cordova-android 6.3.0->6.4.0 => Gradle not found

I upgraded from cordova-android 6.3.0 to 6.4.0 and also updated Android Studio from 2.3 to 3.0.0 (Cordova Android 6.4.0 Released! - Apache Cordova)

At cordova build time, I’m no facing the error:

ANDROID_HOME=/Users/me/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
Error: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio

Any ideas?

1 Like

Due to the recent changes Google made to Android Studio, Cordova Android now requires that Gradle be installed as a dependency for Android development on all platforms.

This should help: Gradle | Installation

@Sujan12 thx for the tips. Ok so the problem is probably my english, then this release notes means “Gradle have to be installed separately than Android studio aka you have to install too on your computer” right?

Yes, you have to install Gradle on its own. It is not enough that it comes with Android Studio.

6 Likes

Thx a LOT for translating it in simple way :wink:

It takes ages to update some android libs, as soon that this is over I gonna install gradle and try again

@Sujan12 you are the best!

So

  • I’ve updated my android libs (SDK and other), deleted and installed again some, take ages but I have updated libs
  • I’ve installed Gradle and added it to my profile PATH
  • Just to be sure, even restarted my laptop

and now I’m able to build again!

1 Like