Error: * * build tool 31.0.0 is missing DX at XXXX (SDK installation address) * * the same error as the title
resolvent
do not use the latest build tools, uninstall the latest packaging tool mark>
Use a different version of build tools instead
Step 1: set up the SDK manager
The setting method is as follows:
- in the top column, select toolsdkmanager, remove the check of Android API 31 and apply SDK platforms as needed, such as Android 11.0 ®, And apply OL>
The completion result is shown in the figure:
The second step is to set up the build.gradle file
1、 Open the build.gradle file in the location shown in the figure
note: the second build.gradle file opens here. When the mouse is over, module: modulename.app displays
2、 Modify the contents of the build.gradle file as shown in the figure
PS: find the SDK version number used by the current simulator
The current simulator uses the SDK version, which can be viewed by clicking AVD manager in the upper right corner
or after modifying targetsdkversion, directly click sync and modify it according to the corresponding warning information.
reference resources:
- [problem record] unity package Android error: & gt; Failed to find build tools revision 30.0.0unity package APK error: failed to find build tools revision 31.0.0 or other versions of Android studio installation, the most detailed in history (more pictures)!! Installation of Android studio (the problem of gradle failure in the supplement is updated on March 10, 2021) OL>
Thanks to the author of the above article
Read More:
- [actual record of Android stepping on the pit] Android studio runs with errors. Installed build tools revision 31 is broken
- 2021-07-27 Android studio:Installed build tools revision 31.0.0 is corrupted.Remove and install ag
- Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager
- failed to find Build Tools revision 23.0.2 Install Build Tools 23.0.2 and sync project
- Failed to find Build Tools revision 27.0.3
- Project error – failed to find build tools revision 26.0.1
- gradle:failed to find Build Tools revision 29.0.2
- Failed to find Build Tools revision 25.0.2
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- After Android studio is installed, open a pop-up window to prompt failed to load JVM DLL XXX
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- Android Studio Series: after Android studio is opened, the project window will not be displayed.
- Solve the problem of installing APK after Android studio compilation: error while installing apk
- Solve the problem of available for offline mode in Android studio compilation
- Android studio error compilation failed see the compiler error output for details.
- Error: pngquant failed to build, make sure that libpng-dev is installed
- Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“
- Android Studio – add configuration for Android studio
- [error record] kotlin code compilation error when Android studio compiles (process @ nonnull parameter when upgrading support library)