Thứ Năm, 20 tháng 12, 2018

How to fix error Failed to find Build Tools revision 28.0.3 Android Studio


Why you got this error:

Android studio does not come with build tools for different android versions when you download it. It also does not make sense since there are multiple versions of build tools and each of them will take hundreds of megabytes on your hard drive.
When you choose a specific build version in the build.gradle file, your android studio may or may not have that version of build tool installed. And if not, you will see the error complaining about it.

How to fix it

You just need to install the specific version of build tool mentioned in build.gradle like this:
  1. Click File > Settings (on a Mac, Android Studio > Preferences) to open the Settings dialog.
  2. Go to Appearance & Behavior > System Settings > Android SDK (Or simply search for Android SDK on the search bar)
  3. Go to SDK Tools tab > Check the Show Package Details check box
  4. Select the specific version of the build tool and click on the Apply button
  5. After the installation, sync the project

Demos

(I choose a different version just to show you how to apply the changes by that apply button :) )
enter image description here
And then sync the project. The error is gone now!
enter image description here

from https://stackoverflow.com/questions/36019599/gradle-sync-failed-failed-to-find-build-tools-revision-24-0-0-rc1
Previous Post
Next Post

post written by: