Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 275
Nicolas Kadis Avatar asked Jun 16 '16 08:06

Nicolas Kadis


3 Answers

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'
like image 85
Vipanchith Reddy Avatar answered Oct 26 '22 05:10

Vipanchith Reddy


  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

like image 31
Bassem Wissa Avatar answered Oct 26 '22 05:10

Bassem Wissa


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
like image 33
laalto Avatar answered Oct 26 '22 05:10

laalto