Eclipse运行android项目报错Unable to build: the file dx.jar was not loaded from the SDK folder的解决办法
作者:franksight 时间:2023-06-14 15:28:30
由于最近通过SDK-Manager
更新了build-tools
,当要用到dx.jar
这个包时,自动调用最新build-tools
中dx.jar
,但是运行Android
项目时Console
却提示:
Failed to load C:\Program Files (x86)\android\android-sdk\build-tools\26.0.0-preview\lib\dx.jar
Unable to build: the file dx.jar was not loaded from the SDK folder
解决步骤:
(1)找到你Android
的SDK
安装目录C:\Program Files (x86)\Android\android-sdk,进入build-tools
文件夹
(2)发现还有很多其他版本的build-tools
,而且版本都是顺序排列的,我们就任意选择一个(只要不是最新版的就行),打开进入lib
文件夹
(3)发现里面有dx.jar
包,复制粘贴到最新版build-tools
存放dx.jar
包的目录下,替换掉原来的dx.jar
包(C:\Program Files (x86)\Android\android-sdk\build-tools\26.0.0-preview\lib\dx.jar)
(4)完成,再次启动Android
项目,问题解决!
来源:https://blog.csdn.net/whj9073/article/details/76157557
标签:eclipse,android,报错
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Java创建表格实例详解 <font color=red>原创</font>
2022-12-22 04:59:13
Java+MySQL 图书管理系统
2023-11-28 19:28:43
![](https://img.aspxhome.com/file/2023/7/60757_0s.png)
SpringCloud Finchley+Spring Boot 2.0 集成Consul的方法示例(1.2版本)
2023-09-02 13:07:36
![](https://img.aspxhome.com/file/2023/9/58329_0s.png)
Android应用创建桌面快捷方式代码
2022-03-03 00:51:44
java数据结构之java实现栈
2023-11-25 05:32:36
springmvc之获取参数的方法(必看)
2023-12-20 09:25:59
![](https://img.aspxhome.com/file/2023/8/80988_0s.png)
C#中通过反射将枚举元素加载到ComboBo的实现方法
2022-05-26 09:28:10
![](https://img.aspxhome.com/file/2023/7/80097_0s.png)
Java容器ArrayList知识点总结
2023-09-05 17:46:04
Android中Uri和Path之间的转换的示例代码
2022-01-25 10:22:48
C#事件实例详解
2022-04-23 22:24:47
Android开发实现抽屉菜单
2022-09-01 11:47:09
![](https://img.aspxhome.com/file/2023/3/137973_0s.jpg)
C语言实例梳理讲解常用关键字的用法
2023-04-09 01:22:52
SpringBoot自定义starter启动器的实现思路
2023-10-09 00:55:15
![](https://img.aspxhome.com/file/2023/0/119150_0s.jpg)
C# 委托的三种调用示例(同步调用 异步调用 异步回调)
2023-06-09 10:29:56
Java二维数组查找功能代码实现
2023-01-04 19:47:17
Java多线程 ThreadLocal原理解析
2022-11-15 12:48:50
Filter过滤器和Listener监听器详解
2021-08-20 07:39:38
unity5.6 导出gradle工程 Android Studio 导入问题及处理方法
2022-03-12 00:45:25
![](https://img.aspxhome.com/file/2023/8/138348_0s.png)
Java 面试题基础知识集锦
2022-05-25 00:01:58
![](https://img.aspxhome.com/file/2023/9/97949_0s.jpg)
Spring和Hibernate的整合操作示例
2023-08-08 11:57:52
![](https://img.aspxhome.com/file/2023/7/75707_0s.png)