问题
I am getting this error on the latest version of Android Studio and while I have installed both Android SDK Platform API 24 Revision 1 and Android SDK Build-Tools 24.
I have also tried File>Invalidate Caches/ Restart... and Build>Rebuild Project.
EDIT: I have also followed all instructions under Android Developers, but I still get this error.
Thanks in advance for any answers.
回答1:
It's not an error. It's just a warning given by Android Studio since the
compileSdkVersion 24
is greater than the
sdk platform-tools version 23.1
sdk platform-tools 24 have not yet been released by Google. Once, they are released, you can update it and the warning will be gone. For now, you can make the following changes in the gradle file and continue with your project.
compileSdkVersion 23
buildToolsVersion 23.0.3
targetSdkVersion 23
compile 'com.android.support:appcompat-v7:23.4.0'
Updated Answer: Google has now released
sdk platform-tools 24
You can download the update from SDK Manager and make the following changes to the gradle file
compileSdkVersion 24
buildToolsVersion 24.0.0
targetSdkVersion 24
compile 'com.android.support:appcompat-v7:24.0.0'
回答2:
- Open SDK Manager
- Go to system settings > Android SDK
- Go to SDK Tools Tab
- you will find Android SDK platform-Tools 23.1 and you will find an update available
- just update it
cheers
回答3:
There's no platform-tools version 24 released yet.
To get rid of the warning, you can install currently available platform-tools 24rc1 from the Tools preview channel in the SDK manager.
From the command line it can be installed with
android update sdk -u -a --filter platform-tools-preview
来源:https://stackoverflow.com/questions/37853581/the-sdk-platform-tools-23-1-is-too-old-to-check-apis-compiled-with-api-24-ple