1

I installed android studio and now when I try to run the first application an error occurred:

"Failed to find Build Tools revision 30.0.2"

What should I do ?

enter image description here

Joundill
  • 6,828
  • 12
  • 36
  • 50
mar
  • 11
  • 2
  • 1
    Yeah, that's a VERY common problem. There's a bug in Android Studio--you can't build with that version. Try a different version of your app's sdk in the `targetSdk` line of your app/build.gradle file (confusingly there are more than one build.gradle files!). But this is really a hack. The real solution is to update your tools as per the link below--you'd think that Google would test each version of Android Studio to make sure it works, but you'd think wrong. Ha! – SMBiggs Jan 22 '22 at 14:29
  • Does this answer your question? [Failed to find Build Tools revision 30.0.1](https://stackoverflow.com/questions/63718190/failed-to-find-build-tools-revision-30-0-1) – Bö macht Blau Jul 17 '23 at 18:56

1 Answers1

0

I have faced a similar problem like below:

Failed to find Build Tools revision 30.0.3

My Environment

I am using Ubuntu 22.04.2 LTS and my SDK location is in a different directory.

Root Cause

The wrong sdk.dir is defined in local.properties by default.

Also SDK path is not set into Project Settings(File>Project Structure)

No SDK Path is set.

Solution

Go to Project Settings(File>Project Structure) and add your SDK path like below.

Proper SDK Path in project settings

After adding the SDK path, you will find the proper sdk.dir is defined in local.properties like below:

Right SDK Path in local properties

Bö macht Blau
  • 12,820
  • 5
  • 40
  • 61