Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change build tools version in Android Studio

I have a problem using jfeinstein10 Sliding Menu

I added the library into my root project folder. But I get this error :

Error:The SDK Build Tools revision (17.0.0) is too low for project ':SlidingMenu'. Minimum required is 19.1.0

But I'm already using "19.1.0" but it still says I'm using 17.0.0

Here is my build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "19.1.0"

    defaultConfig {
        applicationId "com.repliklernet.replikler"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile group:'com.squareup.picasso', name:'picasso', version:'2.5.0'
    compile project(':SlidingMenu')
}

What am I missing ?

like image 799
Mtok Avatar asked Mar 11 '16 22:03

Mtok


People also ask

How do you update build tools?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.

Where can I find build tools version Android Studio?

Android SDK Build-Tools is a component of the Android SDK required for building Android apps. It's installed in the <sdk>/build-tools/ directory.

How do I find my 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 .

How do I change the build tools version in my project?

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:

How do I update my Android build tools?

You should always keep your Build Tools component updated by downloading the latest version using the Android SDK Manager. If you're using Android plugin for Gradle 3.0.0 or higher, your project automatically uses a default version of the build tools that the plugin specifies.

How to change SDK version in Android Studio?

Your app should compatible with all the android os versions between minSdkVersion and targetSdkVersion. 1. Change Android SDK Version In Android Studio. There are two methods that can change the android SDK version in android studio. 1.1 Change in android studio project build.gradle File. Select Project in android studio Project view.

How do I change the version of the Gradle build tools?

If you're using Android plugin for Gradle 3.0.0 or higher, your project automatically uses a default version of the build tools that the plugin specifies. To use a different version of the build tools, specify it using buildToolsVersion in your module's build.gradle, as follows: ...


2 Answers

If you look at the build.gradle file for the library, you can see that it references build tools 17: https://github.com/jfeinstein10/SlidingMenu/blob/master/library/build.gradle#L17

You need to update that line.

The error is actually giving you a hint by mentioning project ':SlidingMenu', referring to the project SlidingMenu.

like image 123
kevinpelgrims Avatar answered Sep 21 '22 22:09

kevinpelgrims


Right click on the project folder and choose 'Open Module Setings' Select 'app' on the Modules List(Left pane) Select 'Properties' tab and will present you with 'Compile SDK Version', 'Build Tools Version'.

Click OK

Reference : https://www.youtube.com/watch?v=v4b7C6Q-9dI

like image 20
chandhya Avatar answered Sep 17 '22 22:09

chandhya