Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
fix error Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
1 - Open Android Studio .
2 - Go to SDK Manager .
3 - Copy Android SDK Location and go to Android SDK Location Folder .
4 - in SDK Folder You will find Folder build-tools Open it then Choose Folder 31.0.0 and change file d8 to dx .
5 - back to folder 31.0.0 and choose folder lib then change file d8 to dx .
Article to fix sdk errors :
How to Install SDK