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:06

Try to update

  • Android SDK Build-Tools
  • Android SDK Platform tools
  • Android SDK Tools
  • Android Support Repository
  • Google Play Services
  • Google repository

    etc to the latest version. Error must be gone.

查看更多
何必那么认真
3楼-- · 2019-02-21 12:12

As Vishnu said, For me updating Android studio and Gradle didn't fix the problem.

I navigated to Tools -> Android -> SDK Manager and selected BuildTools and checked for the updates related to platform tools. After updating and installing those, fixed my problem.

And for one my friends, the issue got resolved after following the above steps and then navigating to Help->Check for updates-> and installing all the available updates.

Attached Screenshot for the same. Screenshot

查看更多
放荡不羁爱自由
4楼-- · 2019-02-21 12:14

I had a similar problem. Updating Android Studio to version 2.2.2 (latest at the time of this writing) and Gradle version to 2.2.2 (latest at the time of this writing) in project_name/build.gradle file fixed this issue.

For reference, this is my config in project_name/app/build.gradle file:

minSdkVersion = 19
targetSdkVersion = 25
compileSdkVersion = 25
buildToolsVersion = "25"
supportLibraryVersion = "25.0.0"

And this is my dependencies in project_name/build.gradle file :

buildscript {

    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        // NOTE: Do not place your application dependencies here; they belong
       // in the individual module build.gradle files
    }
}
查看更多
萌系小妹纸
5楼-- · 2019-02-21 12:18

On command line

./sdkmanager "platform-tools" "platforms;android-26"
./sdkmanager --list

Check if you have update to latest release

查看更多
我想做一个坏孩纸
6楼-- · 2019-02-21 12:21

I am facing similar issue after upgrading Android Studio to 3.0. A very simple way to fix this is go to

Tools -> Android ->SDK Manager -> SDK Tools

There look for Android SDK platform tools and update it. (Screenshot attached)SDK tools window image

Thats it, you don't have to change any other gradle setting.

查看更多
Emotional °昔
7楼-- · 2019-02-21 12:23

Update your android sdk platform-tools to the revision from 24.0.4 to 25.x.x on sdk manager. Then android studio click File->Invalidate Caches/Restart...

The error must be gone now.

查看更多
登录 后发表回答