Cause: dx.jar is missing

Posted zgz345

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cause: dx.jar is missing相关的知识,希望对你有一定的参考价值。

Cause: dx.jar is missing

解决方案

方案一 copy dx.jar到目标编译版本


查找相应的buildToolsVersion版本下是否有dx.jar存在 如果不存在则可以copy相邻的buildtool下的dx.jar比如:项目中使用的时
buildToolsVersion: "25.0.3"
在25.0.3中未找到dx.jar,可以使用以下命令copy dx.jar到25.0.3中

cp ./build-tools/25.0.2/lib/dx.jar ./build-tools/25.0.3/lib/dx.jar

 

方案二 使用其他buildToolsVersion

以上是关于Cause: dx.jar is missing的主要内容,如果未能解决你的问题,请参考以下文章

Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager解决

Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager解决

Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager解决

Cause: Write access is allowed from event dispatch

Android的报错提示:Error:Cause: buildToolsVersion is not specified.

MyBatisError parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource(代