sdk平台工具(23.1)太旧,无法检查使用API​​ 24编译的API;请更新 [英] The sdk platform-tools (23.1) is too old to check APIs compiled with API 24; please update

查看:112
本文介绍了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'

这篇关于sdk平台工具(23.1)太旧,无法检查使用API​​ 24编译的API;请更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆