How To Resolve Android Studio SDK Platform-Tools Version Is Too Old Error

When you update your android SDK version to a higher version, you may encounter the below errors when you edit exist java files in android studio.

The SDK platform-tools version (26.0.1) is too old to check APIs compiled with API 27; please update

To resolve this error, you just need to follow the below steps.

  1. In android studio, click Tools —> Android —> SDK Manager. 
  2. Click the Android SDK menu item in the left panel.
  3. Click the SDK Platforms tab in the right panel and check the required android API checkbox in the SDK Platforms tab list.
  4. Make sure the checkbox before the Android API is checked, click the OK button, it will popup a dialog which tells you that it will install the selected components, click OK in the popup dialog.
    install-selected-android-sdk-api
  5. Then android studio will download and install the selected component, when the process is complete, click the Finish button and restart android studio if required. Then the problem has been fixed.
  6. You can also check the Show Package Details checkbox in the bottom right corner of the step 4 dialog, then select your desired SDK version and deselect the SDK version that you do not want,  then click the OK button to update, this action can make your project SDK version more clearly.
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x