HomeWorld Tech

Gradle sync failed: failed to find Build Tools revision 24.0.0 rc1 –

Gradle sync failed: failed to find Build Tools revision 24.0.0 rc1 –
Like Tweet Pin it Share Email

Development issue/problem:

So far I’ve come across an error when setting up new projects in Android Studio. Immediately after building an empty project, the log says that Gradle’s synchronization failed: it did not find a Build Tools revision 24.0.0 rc1.

I first looked online to see how I could solve this problem and came across a similar problem, then I followed the given solution (by setting the version of the build tool in the module parameters). However, in Android Studio the android() method is not found and a version of Gradle that does not contain the method can be used in the TestBlankApplication project.

Moreover, the SDK manager informs me that I have installed the 24 rc1 tools. So I don’t know why Android Studio can’t find it.

The SDK Manager screen indicates that 24 rc1 are installed:

Does anyone know how to fix it? Thank you so much!

How can I solve this problem?

Solution 1:

Why did you receive this error:

Android Studio does not come with tools to create different versions of Android when you download it. That doesn’t make sense either, because there are different versions of the building tools and each of them takes up hundreds of megabytes on your hard disk. That’s why the Android Studio installation package is 1 GB and Xcode, which contains all building tools, is 6 GB.

If you select a specific build version in the build.gradle file, your Android studio may or may not have installed that version of the build tool. Otherwise an error message will be displayed to complain.

How to fix

You just need to install the specific version of the build tool mentioned in build.gradle, something like this:

  1. Click File > Preferences (on Mac, click Android Studio > Preferences) to open the Preferences
    dialog box.
  2. Go to Appearance and Behavior > System Settings > Android SDK (or
    , search the search bar for Android SDK).
  3. Click on the SDK Tools tab > Select the Show Package Details checkbox.
  4. Select the specific version of the build tool and click Apply
    .
  5. Synchronize the project after installation

Demonstrations

(I choose the other version to show you how to apply the changes using this request button).

Give here a description of the image

And then synchronize the project. The mistake is gone!

Give here a description of the image

Solution 2:

In the Gradle build.gradle script (App module) try to change the buildToolsVersion to 23.0.2
.

and install buildTools version 23.0.2.

subsequent reconstruction

Solution 3:

  1. Proceed as follows to correct the error.
  2. Go to File -> Project structure.

Give here a description of the image

  1. In the dropdown list you will find all versions of the building tools installed in your android studio.
  2. Look for a higher version. If Gradle does not find 24.0.0, search for 24.0.1 in the drop-down list.
  3. Run a full code search. Search all locations from 24.0.0. Replace it with 24.0.1.
  4. Perform a synchronized shutdown.

Solution 4:

I had the same problem and finally discovered that in the build.gradle file, the version does not match the buildTools version in the sdk I installed.
(because I imported a homemade project on other calculations with an updated sdk).

Before that:

Corrected:
build.gradle(app): buildToolsVersion 25.0.1.

Then just synchronize your project with the gradle files and it should work.

Solution No 5:

The SDK tools helped me with this task because I had to install the build version of the tool.
All you have to do is install the correct version of the assembly tool,

SDK Manager -> SDK Tool -> View Package Information -> Select and install the correct version of the build tool.

Solution No 6:

Go to Cradle Assembly (Module: Application)
Change the following.
In my case I choose 25.0.3.

android

compileSdkVersion 25
buildToolsVersion 25.0.3
defaultConfig {
applicationId com.example.cesarhcq.viisolutions
minSdkVersion 15
targetSdkVersion 25

After that, everything works fine!

Solution No 7:

The Android Studio update didn’t work for me. So I manually updated it. Navigate to your SDK location, start the SDK Manager, mark the version of the build tools you want and install it.

Solution No 8:

I encountered this problem after reinstalling Android Studio (under GNU/Linux). I also used the Android SDK installation wizard, and Build Tools 28.0.3 was installed, although Android Studio tried to use 28.0.2 instead.

But the problem wasn’t the version of the construction tools, it was the license. I didn’t accept the Android SDK license (the wizard doesn’t ask for it), and Android Studio refused to use the building tools; the error message is just wrong.

To solve the problem, I transferred the license manually. In the terminal I ran $ANDROID_SDK/tools/bin/sdkmanager licenses and answered yes to the SDK license question. The rest of us can say no.

Solution No 9:

has run into the same problem: The synchronization of the bleachers failed: Build Tools version x.x.x was not found.

Reason: The construction tools for this version are not correctly loaded by solution
:

  1. Click File > Preferences (on Mac, Android Studio > Preferences) to open the Preferences dialog box.
  2. Go to Appearance and Behaviour > System Preferences > Android SDK (or search for the Android SDK in the search bar).
  3. Click on the SDK Tools tab > Select the Show Package Details checkbox.
  4. Deactivate a specific version to uninstall it.
  5. Click on the Apply button.

Then perform steps 1 to 3 and 6.

  1. Select the specific version of the build tool and click on Apply
    After installation, synchronize the project.

Solution No 10:

In addition, all Google libraries (e.g. supporting libraries, CardView, etc.) must have the same version.