Fix Build-tool 31.0.0 is missing DX at
Error Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager. Fix Build-tool 31.0.0 is missing DX at
Solution
Copy dx.bat from other build tool example 30.0.0 And copy dx.jar ini lib directory to your SDK Build tools 31.0.0