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

AndroidAndroid Studio

Android Problem Overview


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.

Android Solutions


Solution 1 - Android

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.

Solution 2 - Android

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"

Solution 3 - Android

I was able to solve the problem on windows as follows:

Go to Tools -> Android -> SDK Manager -> click on Update the android Android SDK platform tools to the latest one. Once it is done updating, the error should be gone.

That is what worked for me hope it works for you too.. Cheers

Solution 4 - Android

first you should update your SDK, for update go to SDK Manager and click on install packages. if this button is not active, click on Tools->Options->Clear cache and then close SDK Manager and reopen it. now your button is active. after update SDK Manager go to android studio and click on File->Invalidate cache/Restart->Invalidate cache/Restart. now your problem is solved. enjoy!

Solution 5 - Android

I had the same error, the way I solve it was that press Alt+Enter and choose Disable Inspection, it will remove the error, I hope this will work for you too.enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRuslanShView Question on Stackoverflow
Solution 1 - AndroidrakexView Answer on Stackoverflow
Solution 2 - AndroidKavithaView Answer on Stackoverflow
Solution 3 - AndroidSwishView Answer on Stackoverflow
Solution 4 - AndroidAbolfazl MiadianView Answer on Stackoverflow
Solution 5 - Androiduser6689631View Answer on Stackoverflow