Reputation: 493
When I make a new proyect, then Build-make project or try to Run App in an emulator with sdk api level 28 (Android 9.0 Pie), the Build Output window always show me this error:
Installed Build Tools revision 28.0.3 is corrupted. Remove and install again using the SDK Manager.
I removed and reinstalled the sdk several times, and always gives me the same error. I'm using Android Studio 3.6.3 with build:gradle:3.6.3.
Upvotes: 24
Views: 41252
Reputation: 13475
I found this question when I was getting
Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
The "uninstall and reinstall" technique from @TrackRunner did not work for me. Downgrading the buildToolsVersion
in build.gradle
did. Note - upgrading to a higher version like 33.0.0
resulted in the same "corrupted" error.
android {
compileSdkVersion 31
buildToolsVersion '30.0.3' // Used to be 31.0.0
...
}
Upvotes: 1
Reputation: 311
Installed Build Tools revision 31.0.0 is corrupted. How to fix this error
While executing quasar -m cordova -T android
I got the Build Tools corrupted error. But on checking the SDK directory /path-to-sdk/
all the installed sdk versions are listed in the directory.
Ex:
/path-to-sdk/31.0.0
/path-to-sdk/29.0.3
etc
In the later versions especially with the versions upto version 29 and below d8 & dx and d8.jar & dx.jar files are found in both /path-to-sdk/version
and /path-to-sdk/version/lib
paths respectively.
But in the latest versions the files dx and dx.jar files are seemed to be omitted in their respective paths, and only the d8 and d8.jar are found.
So on renaming these files from d8 and d8.jar fixes the problem.
Note: On compiling and building with quasar/cordova frameworks this doesn't seems to affect the integrity of android build tools. However this may affect the project run/build while using android-studio for development.
Upvotes: 0
Reputation:
I tried
e.g. Open Your SDK Path: C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools
then the build should succeed.
Upvotes: 5
Reputation: 514
1) Open the SDK manager by clicking on the icon in the top right of Android Studio. (Or go to File > Settings > Appearance & Behavior > System Settings > Android SDK)
2) Open SDK Tools tab
3) At the bottom-right, click "Show Package Details"
4) Find Android SDK Build-Tools and uncheck the checkbox next to 28.0.3
5) Click apply in the bottom of the window. That will delete the component.
6) Now check the checkbox next to 28.0.3
7) Click apply in the bottom of the window. That will reinstall it.
Upvotes: 45