Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to find Build Tools revision 29.0.0 - Android Builds

Now from my all Android projects, I can't able to export Android builds after updating library using Android Studio. I was, again and again, getting the same error:

enter image description here

This project does not contain any kind of external plugins installed. Then also I was getting this error, just two days before it was working properly.

EDIT: Android SDK tools folder content: enter image description here

like image 423
Siddharth Avatar asked Apr 03 '19 11:04

Siddharth


People also ask

How do I install build tools on Android?

Install the SDKClick Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31. Click OK to install the SDK.

Do you have Android build tools installed at?

Android SDK Build-Tools is a component of the Android SDK required for building Android apps. It's installed in the <sdk>/build-tools/ directory.

How do you solve installed build tools revision 31.0 0 is corrupted remove and install again using the SDK Manager?

The same problem was encountered and solved with a few line changes. Check the Project code panel, and go to Gradle Scripts → build. gradle file, Change three places from 31 to 30: compileSdkVersion, buildToolsVersion, and targetSdkVersion.


2 Answers

You should download Android SDK Build-Tools.

in Android Studio, go to Tools -> SDK Manager

in the left plane, select Appearance & Behavior -> System Settings -> Android SDK

now in the right plane Select SDK Tools after that in the bottom right corner there is checkbox called Show Pakage Details.

Expand the Android SDK Build-Tools and you can see the version of it.

Unselect the current version and Apply the Settings, You will ask to uninstall current version of build tools

And Select the version 29.0.0 and install it

enter image description here

like image 180
Chamin Thilakarathne Avatar answered Oct 16 '22 16:10

Chamin Thilakarathne


For building a project, Unity3d uses a stable version of the Build Tools and not an rc (release candidate).

The Android SDK path is usually C:\Users\<username>\AppData\Local\Android\sdk\build-tools\ delete the 29.0.0-rc1 folder or move it out to anywhere. You could also remove the rc version of the SDK Build Tools via Android Studio's SDK manager.

Doing that the project should build successfully.

like image 30
Hamid Yusifli Avatar answered Oct 16 '22 15:10

Hamid Yusifli