Android 应用编译时 , 报如下错误 :
Build-tool 31.0.0 is missing DX at Y:\001_DevelopTools\002_Android_SDK\build-tools\31.0.0\dx.bat
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 43s
将 Y:\001_DevelopTools\002_Android_SDK\build-tools\31.0.0
目录中的 d8.bat 复制一份 , 并且将名称修改为 dx.bat ;
将 Y:\001_DevelopTools\002_Android_SDK\build-tools\31.0.0\lib
目录中的 d8.jar 复制一份 , 并且将名称修改为 dx.jar ;