Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager.

今天Unity打包apk碰到这个问题,记录下。
我参考了一些博客,有一下几种做法的:
1.降低sdk版本,比如降低到30,同时BuildTool也降低
2.拷贝30.0.0或者其他版本的dx文件到32.0.0里面的lib目录
以上对我无效。下面可以:
首先把Unity改成本地的
Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager._第1张图片

找到自己 sdk 的目录位置,默认在 %AppData%\Local\Android\Sdk\,Win + R 快捷键打开启动,输入 %AppData% 即可快速进入;
然后进入目录, build-tools\31.0.0,将 d8.bat 文件名改成 dx.bat;
然后继续找到 build-tools\31.0.0\lib 目录,将 d8.jar 改成 dx.jar 即可。
Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager._第2张图片
Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager._第3张图片

你可能感兴趣的:(车载,unity,游戏引擎)