Android:Installed Build Tools revision 33.0.2 is corrupted.

Remove and install again using the SDK Manager.

使用33.0.2及以上版本的build-tools编译Android应用时。

有些人会按照提示去SDK Manager中重新安装build tools,然后发现这样做是无用的

编译时会收到:Build-tool 33.0.2 is missing DX at D:\Sdk\build-tools\33.0.2\dx.bat

解决方案:

更改批处理文件名称

  1. 找到build tools目录中的d8.bat,将文件名修改为dx.bat
  2. 找到build tools目录中的lib/d8.jar,将文件名修改为dx.jar
  3. 回到Android Studio重新打包。

你可能感兴趣的:(android)