Failed to import new Gradle project: failed to find Build Tools revision *.0.0
After spending a few hours: I restarted the Android SDK Manager
and at this time I noticed that I got Android SDK Platform-tools
(upgrade) and Android SDK Build-tools
(new).
After installing those, I was finally able to fully compile my project.
Note: The latest ADT (Version 22) should be installed.
This is what I had to do:
- Install the latest Android SDK Manager (22.0.1)
- Install Gradle (1.6)
- Update my environment variables:
ANDROID_HOME=C:\...\android-sdk
GRADLE_HOME=C:\...\gradle-1.6
- Update/dobblecheck my PATH variable:
PATH=...;%GRADLE_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
- Start Android SDK Manager and download necessary SDK API's
As of May 2020, A really straightforward solution using Android Studio:
- Open Android Studio
- From the top, choose File > Settings > Appearance & Behavior > System Settings > Android SDK
- click on the tab SDK Tools at the top. Then highlight Android SDK Build Tools from the list.
- Check "Show Package Details" check box, choose the build tools version you need and then click Apply.
Look in the SDK Manager what is your highest Android SDK Build-tools
version, and copy this version number in your project build.gradle
file, in the android/buildToolsVersion
property (for me, version was "18.1.1").
Hope it help!