解决Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!(转载)

本文解决了Android开发中遇到的Unknownerror:Unabletobuild:thefiledx.jarwasnotloadedfromtheSDKfolder!的问题。当AndroidSDKBuild-tools版本高于AndroidSDKPlatform-tools时会出现此错误。文中提供了一个有效解决方案,并给出了具体的操作步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解决Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!最近渐渐迁移到Android Studio来了,更新过Android SDK Manager里的东西后,打开Eclipse Run工程报错。查找各种解决办法,发现:

Android SDK Build-tools的版本已经高于Android SDK Platform-tools版本了,见图

由于Android Studio有时必须用高版本的Build-tools,所以简单的删除高版本的Build-tools是不行的(见Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!解决方法)。

最终,在Stack Overflow上找到相关答案(Android ADT error, dx.jar was not loaded from the SDK folder),修改见图:

添加sdk.buildtools=你电脑上已装的build tools版本

 

评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值