Update Android TargetSDK Version
If Android Gradle Plugin 7.x or later is used, no modifications are needed.
Build Tools revision 33.0.0
If the prompt Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager. appears when compiling the project, change d8 to dx in build-tools/33.0.0
under the directory where Android SDK resides and run the following command:
MAC
cd {YOUR_ANDROID_SDK_HOME}/build-tools/33.0.0
cp d8 dx
cd lib
cp d8.jar dx.jar
Windows
cd {YOUR_ANDROID_SDK_HOME}/build-tools/33.0.0
xcopy d8 dx
cd lib
xcopy d8.dat dx.dat
Build Tools revision 32.0.0
If the prompt Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager. appears when compiling the project, change d8 to dx in build-tools/32.0.0
under the directory where Android SDK resides and run the following command:
MAC
cd {YOUR_ANDROID_SDK_HOME}/build-tools/32.0.0
cp d8 dx
cd lib
cp d8.jar dx.jar
Windows
cd {YOUR_ANDROID_SDK_HOME}/build-tools/32.0.0
xcopy d8 dx
cd lib
xcopy d8.dat dx.dat
Build Tools revision 31.0.0
If the prompt "Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager." appears when compiling the project, change d8 to dx in build-tools/31.0.0
under the directory where Android SDK resides and run the following command:
MAC
cd {YOUR_ANDROID_SDK_HOME}/build-tools/31.0.0
cp d8 dx
cd lib
cp d8.jar dx.jar
Windows
cd {YOUR_ANDROID_SDK_HOME}/build-tools/31.0.0
xcopy d8 dx
cd lib
xcopy d8.dat dx.dat