The sdk platform-tools (23.1) is too old to check APIs compiled with API 24; please update

心已入冬 提交于 2019-12-10 12:29:18

问题


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:


  1. Open SDK Manager
  2. Go to system settings > Android SDK
  3. Go to SDK Tools Tab
  4. you will find Android SDK platform-Tools 23.1 and you will find an update available
  5. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!