The SDK platform-tools version (24.0.4) is too old

2019-02-21 11:48发布

I am getting this error on the latest version of Android Studio and while I have installed both Android SDK Platform API 25 and Android SDK Build-Tools 25.

9条回答
孤傲高冷的网名
2楼-- · 2019-02-21 12:27

Go to Gradle(app) and replace

  buildToolsVersion "25"

to

  buildToolsVersion "24.0.4" // Or Latest installed gradle version 

also if targetSdkVersion is 25 then make this 24

查看更多
淡お忘
3楼-- · 2019-02-21 12:28
  1. Open AndroidMainfest.xml
  2. Click the red icon => Disable inspection => Error is gone

enter image description here

查看更多
兄弟一词,经得起流年.
4楼-- · 2019-02-21 12:30

I face same problem but when I swap

buildToolsVersion "25.0.0"

to first line then problem solved. Then the final app grade become:

android {
    buildToolsVersion "25.0.0"
    compileSdkVersion 25

    defaultConfig {
        applicationId "com.***"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 0
        versionName "0.0.0"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
查看更多
登录 后发表回答