Minimum supported Gradle version is 2.14.1
When importing an Android project into Eclipse, get this error. The Eclipse is using Gradle 2.5, which is lower than 2.14( 5 < 14).
The error message suggests to editing a file which I didn't find on that path.
FAILURE: Build failed with an exception. * Where: Build file 'C:\workspace3.8\AndroidFire-master\app\build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Minimum supported Gradle version is 2.14.1. Current version is 2.5. If using the gradle wrapper, try editing the distributionUrl in C:\App\eclipse3.8.2\gradle\wrapper\gradle-wrapper.properties to gradle-2.14.1-all.zip * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 6.759 secs
According to the message, my Eclipse is using Gradle version 2.5, but the project has its own Gradle distribution in the gradle folder. What I need to do is to tell the Eclipse to use the gradle wrapper of the project, not the installed one. Change Folder to Use Gradle wrapper's default
I didn't install the Android Studio, change this line will affect all other Gradle project, in Andrid Studio, you can customize the Gradle to use for each project.
If you are using Android Studio, go to Preference -> Builds, Execution, Deployment -> Build Tools -> Gradle
Set the Project-Level to Use default gradle wrapper (recommended).
Speed up the downloading
The Gradle distribution package gets bigger and bigger, it takes quite a while to download it with built-in downloader in Eclipse.
But you don't have to wait for so long. When the downloading goes, the dialog box will display the url of the package, for example
Download this url with your favorite download tool, it should be way much faster than the Eclipse's. Now terminate the Eclipse from task manager, and go to your .gradle folder which should be your user home directory and find the following directory
I should contains a file with name ends with part. It's the unfinished downloading of Gradle distribution package. Now delete the file and copy the file you downloaded to this folder then reimport the project.