Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Gradle BuildTools Revision

I have an Android Project in Android Studio 0.5.9 and Gradle is throwing this error:

Error:The SDK Build Tools revision (17.0.0) is too low. Minimum required is 19.0.0 

I have already installed SDK Build Tools Revision 19 from the SDK Manager and here is my build.gradle

buildscript {     repositories {         mavenCentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.10.+'     } } apply plugin: 'android'  repositories {     mavenCentral() }  android {     compileSdkVersion 17     buildToolsVersion "19.0.0"      defaultConfig {         minSdkVersion 9         targetSdkVersion 17     }      sourceSets {         main {             manifest.srcFile 'Manantiales/src/main/AndroidManifest.xml'         }     } } 

How do I tell gradle to use the Build Tools 19 if it's already installed?

EDIT: I marked a different answer as The Best Answer because it was the one that worked for most people

like image 691
Gabriel Matusevich Avatar asked Jun 02 '14 17:06

Gabriel Matusevich


People also ask

How do I change my build tools revision?

If you want to change the Build Tools version in your project, that is specified in project's build. gradle file (in the 'app' module). Open the file and either add or update the Build Tools version you want to use by adding/updating the following property in the 'android' section: android { buildToolsVersion "27.0.

How do I find Gradle build tools version?

For the compileSdkVersion you can goto Tools > Android > SDK Manager . This will pull up a window that will allow you to manage your compileSdkVersion and your buildToolsVersion . You can also select the link at the bottom left (Launch Standalone SDK Manager) this will give you a little bit more information.

How do I change my build tool version?

The Build Tools version of your project is (by default) specified in a build. gradle file, most likely in the app sub directory. Open the file and change/specify the Build Tools version you want to use by adding/changing a buildToolsVersion property to the android section: android { buildToolsVersion "24.0.


1 Answers

I had the same problem this morning after updating to .6.0. You need to change you gradle version in /projectName/build.gradle

classpath 'com.android.tools.build:gradle:0.11.+' 

Open your SDK manager and download the new version of the build tools 19.1 then change the following line in /projectName/moduleName/build.gradle

android {   compileSdkVersion 19   buildToolsVersion "19.1" //This version needs to be updated to 19.1 after SDK update    ...  } 

Then sync your gradle files and you should be good to go!

like image 126
Eric Labelle Avatar answered Oct 09 '22 09:10

Eric Labelle