eclipse升级Android SDK Tool版本到25.2.5后运行项目报错Unable to build: the file dx.jar was not loaded from the SD

幽映每白日,清辉照衣裳。这篇文章主要讲述eclipse升级Android SDK Tool版本到25.2.5后运行项目报错Unable to build: the file dx.jar was not loaded from the SD相关的知识,希望能为你提供帮助。
概述由于最近通过SDK-Manager更新了build-tools,当要用到dx.jar这个包时,自动调用最新版本android SDK build-tools中dx.jar,但是运行android项目时Console却提示:
 

eclipse升级Android SDK Tool版本到25.2.5后运行项目报错Unable to build: the file dx.jar was not loaded from the SD

文章图片

解决方案解决办法就是:确保dx.jar这个文件在build-tools\\lib和选择的Andriod SDK Tools版本一致就可以。
【eclipse升级Android SDK Tool版本到25.2.5后运行项目报错Unable to build: the file dx.jar was not loaded from the SD】我用的 Android SDk build-tools 最新版本是 28.0.3,安装的Andriod SDK Tools版本是25.2.5,两个版本要一致,所以我用Android SDk build-tools 25.0.3版本的dx.jar文件覆盖最新版本28.0.3中的dx.jar文件,然后重启Eclipse就可以了。
eclipse升级Android SDK Tool版本到25.2.5后运行项目报错Unable to build: the file dx.jar was not loaded from the SD

文章图片

 
备注:dx.jar文件所在目录:{sdk安装目录}\\build-tools\\{版本号}\\lib
比如:
eclipse升级Android SDK Tool版本到25.2.5后运行项目报错Unable to build: the file dx.jar was not loaded from the SD

文章图片

 
参考资料Unable to build: the file dx.jar was not loaded from the SDK folder
Unable to build: the file dx.jar was not loaded from the SDK folder!
关于解决Eclipse报错显示Unable to build: the file dx.jar was not loaded from the SDK folder

    推荐阅读