Reason: This phenomenon usually occurs when using SDK31 for the first time
my error
In order to solve this, I changed my version from 29 to 31
So this appeared
Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager
Follow the prompts, delete 31.0.0 and reinstall
However it didn't work
Correct way:
Open the terminal --> enter the following directory
Change the d8 inside to dx
The command is:
mv d8 dx
-->Enter the following directory:
Change the d8.jar inside to dx.jar
The command is:
mv d8.jar dx.jar
Then re-run the project and it will be OK, Sahua ✿✿ヽ(°▽°)ノ✿