Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to find Build Tools revision 30.0.1

My Android Studio setup is as follows :

Android Studio Version : 4.0 (May 2020 Build)
Android Gradle Plugin Version : 4.0.0
Gradle Version : 6.1.1

But it gives me this error :

Failed to find Build Tools revision 30.0.1

I checked in the SDK tools in the sdk manager and there is no 30.0.1 version persent but 30.0.2 version is present. To force Android Studio to use 30.0.2 i added the below line in the app's gradle properties in the android tag

android { .. .. ..

buildToolsVersion "30.0.2"

}

But stuill it is showing the same error. I think every Gradle+plugin version is mapped to a given Buildtoolversion and for my one it is 30.0.1 but sadly SDK tool version doesnt show it. Is there a way to know which gradle+plugin version corresponds to 30.0.2?

Rp

like image 865
Raulp Avatar asked Sep 03 '20 06:09

Raulp


3 Answers

I have the same problem as you, but my android studio prompt:

Failed to find Build Tools revision 30.0.3

I click the menu Tools - SDK Manager to check why there isn't 30.0,3;

I found that, in the SDK platforms tab list, there is showing

Name                  API Level     Revision    Status
Android 11.0(R)       30            3           Update available

I opened directory to dig:

dir %LOCALAPPDATA%\Android\Sdk\build-tools

there are these things, no 30.0.3 is there;

2021/11/02  20:02    <DIR>          .
2021/11/03  08:37    <DIR>          ..
2020/12/25  12:46    <DIR>          30.0.2
2021/10/27  15:16    <DIR>          31.0.0
2021/03/17  17:07    <DIR>          31.0.0-rc1
2021/05/07  14:57    <DIR>          31.0.0-rc3
2021/11/02  20:02    <DIR>          32.0.0-rc1

So, conclusion is that specified version of buildTool is missing cause the problem, we should Install the missing version;

However, I can't upgrade 30.0.2 to 30.0.3 because there is no dash, and only checkmark in checkbox , I can't check the checkbox to upgrade it , so I have to install them both;

You can following the steps in the picture to install the missing version;

Tools - SDK Manager - SDK Tools - Show Package Details

Select the version you need, and click apply button to install it;

enter image description here

like image 149
Kevin Ding Avatar answered Oct 19 '22 02:10

Kevin Ding


I had the same problem and I fixed it by doing this:

  1. Go to File->Project Structure
  2. Click to the Modules in the right column
  3. In Properties tab, select a Build Tools Version in the dropdown list.
  4. Click Apply then OK

Here's a screenshot:

enter image description here

like image 31
Félix Maroy Avatar answered Oct 19 '22 02:10

Félix Maroy


Follow the step:- Open Android studio then Tools->SDK Manager ->SDK Tools

see below right show package check then you will see the SDK Tools version and you can download it by check and apply then ok.

like image 2
Himanshu Kumar Avatar answered Oct 19 '22 04:10

Himanshu Kumar