0

I know this has been asked on SO many times but not able to get it solved for me.

Main Project Gradle

dependencies {
    classpath 'com.android.tools.build:gradle:2.2.3'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

App Module Gradle File

android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
    applicationId "com.something"
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

So the question is from where does it taking the build tool version 24.0.3 as I have set it to 25.0.1

Just confused!!

android_griezmann
  • 3,757
  • 4
  • 16
  • 43

3 Answers3

5

There 3 steps: You can have a try like this. I have same problem too.

enter image description here

weithink
  • 76
  • 1
  • 4
0

Try to set this way

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
    applicationId "com.something"
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
  }
 }

and add compile com.android.support:appcompat-v7:25.0.1.

Harshad Pansuriya
  • 20,189
  • 8
  • 67
  • 95
0

I faced the same problem and resolved by performing following steps:

1. Please try to Uninstall your older platform-tools, such as 24.0.3

enter image description here

2. Then install the recommended platform-tools.

3. Restart Android studio, that will be OK

PEHLAJ
  • 9,980
  • 9
  • 41
  • 53