Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

Posted _Vincent

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!相关的知识,希望对你有一定的参考价值。

Eclipse 编译没问题,但是运行就出现这个报错:Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

这个报错是由于安卓的SDK版本太高导致的。两个解决方法,一个是直接使用android studio,一个是删除高版本的构建包。

先看看报错情况:

 

如图提示,加载失败26.0.1,那么我们需要打开SDK管理器,并删除这几个包

删除后,重启Eclipse并Clean项目即可。

以上是关于Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!的主要内容,如果未能解决你的问题,请参考以下文章

Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

Warning: File upload error - unable to create a temporary file in Unknown on line 0 的解决办法

jenkins里跑selenium webdriver,Chrome浏览器不能打开&&unknown error: unable to discover open pages(示例代码

Unable to load configuration. - [unknown location]

[oracle]ORA-04031: unable to allocate bytes of shared memory ("shared pool","unknown

Android NDK调试出错Unknown Application ABI, Unable to detect application ABI's的解决方式