Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The SDK platform-tools version ((23)) is too old to check APIs compiled with API 23

I am getting this strange error on the first line of each file in my Android Studio. Everything was OK until I updated my Android Studio. Could someone explain to me what's going on and how to get rid of such error? I'd appreciate any help with it.

P.S: Despite this error, I can compile and run my code successfully.

like image 797
RuslanSh Avatar asked Oct 17 '15 09:10

RuslanSh


People also ask

How to check SDK platform tools version?

Navigate to “Appearance & Behavior” > “System Settings” > “Android SDK” and now you can see the SDK versions that were installed in the “API Level” and “Name” columns (focus on “API Level”).

How to Update SDK platform tools version in Android studio?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.


2 Answers

Update your android sdk platform-tools to the revision 23.0.1 from sdk manager. In android studio click File->Invalidate Caches/Restart...

That's it. The error must be gone now.

like image 103
rakex Avatar answered Oct 08 '22 00:10

rakex


Like the error says, the Platform-tools needs to be on a newer version. To update,

  1. Open SDK manager
  2. At the bottom of the dialog box, click on link Launch Standalone SDK Manager -> Rev will be 23.01
  3. Install the updated package
  4. Invalidate cache as File -> Invalidate caches/Restart"
like image 30
Kavitha Avatar answered Oct 07 '22 22:10

Kavitha