1

I just updated my android studio from 2.3 to 3.0 from stable channel.

But I was getting this error

Failed to find Build Tools revision 26.0.2 Install Build Tools 26.0.2 and sync project

I do tried to install this but still failing to resolve

Renz Manacmol
  • 869
  • 12
  • 27
  • 1
    If you click on that error it will install it for you. You can verify in SDK Manage if it's installed. Then update in your `build.gradle` file `buildToolsVersion` to `26.0.2` – Sharjeel Oct 30 '17 at 02:11
  • Same for me, I got the error "no package available" – Lucas78 Oct 30 '17 at 16:32
  • Possible duplicate of [Failed to find Build Tools revision 23.0.1](https://stackoverflow.com/questions/36683726/failed-to-find-build-tools-revision-23-0-1) – user10089632 Nov 11 '17 at 01:34

2 Answers2

3

Open SDK manager to check installed buildtool revision version:

for example, I have version 27.0.3 installed.

Then add buildToolsVersion '27.0.3' in build.gradle:

Martin Tournoij
  • 26,737
  • 24
  • 105
  • 146
  • Manually specifying the buildToolsVersion in build.gradle works for me, thanks! Any idea why does Android Studio insists to use 26.0.2 and won't automatically pick up the newer installed version? – shiouming Jan 27 '18 at 03:54
  • I do not really know this. Maybe it's somewhere available in android studio or it has downloaded the default configuration in gradle. That's the publisher's fault – Biên Hà Văn Jan 28 '18 at 15:52
  • Seems to be vaguely related to https://stackoverflow.com/questions/48508849/build-failing-in-travis-due-to-multidex-android-bug? – Gabor Jan 29 '18 at 21:18
0

You can install any version of build tools manually. Please go to Preferences > Appearance & Behavior > System Settings > Android SDK. Then select "SDK Tools" pane and be sure to check "Show package details" below the list. Then you can install additional versions of Android SDK Build-Tools. Voila!

Android SDK install 26.0.2 tools

jblew
  • 506
  • 3
  • 9