sdk平台工具(23.1)太旧,无法检查使用API​​ 24编译的API;请更新

sdk平台工具(23.1)太旧,无法检查使用API​​ 24编译的API;请更新

问题描述:

我在最新版本的Android Studio上收到此错误,并且同时安装了Android SDK Platform API 24修订版1和Android SDK Build-Tools 24.

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.

我还尝试了File> Invalidate Caches/Restart ... and Build> Rebuild Project.

I have also tried File>Invalidate Caches/ Restart... and Build>Rebuild Project.

我还按照下的所有说明进行操作Android开发人员,但仍然出现此错误.

I have also followed all instructions under Android Developers, but I still get this error.

提前感谢您的回答.

这不是错误.自从

compileSdkVersion 24

大于

sdk platform-tools version 23.1

Google尚未发布

sdk平台工具24.一旦它们被释放,您可以对其进行更新,并且警告将消失.现在,您可以在gradle文件中进行以下更改,然后继续您的项目.

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'

更新的答案: Google现在已经发布

Updated Answer: Google has now released

sdk platform-tools 24

您可以从SDK Manager下载更新,并对gradle文件进行以下更改

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'