本文主要是介绍【错误记录】Android 编译报错 ( Installed Build Tools revision 31.0.0 is corrupted | 修改 d8.bat、d8.jar 为 dx 名称 ),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
文章目录
- 一、报错信息
- 二、解决方案
一、报错信息
Android 应用编译时 , 报如下错误 :
Build-tool 31.0.0 is missing DX at Y:\001_DevelopTools\002_Android_SDK\build-tools\31.0.0\dx.batFAILURE: 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.orgBUILD 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 ;
这篇关于【错误记录】Android 编译报错 ( Installed Build Tools revision 31.0.0 is corrupted | 修改 d8.bat、d8.jar 为 dx 名称 )的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!