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

Posted 好久不见

tags:

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

解决Unknown error: to the dx.jar 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: to the dx.jar the SDK folder!解决方法)。

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

技术分享图片

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

技术分享图片

即可。

 

 

亲测:

target=android-24
sdk.buildtools=25.0.3

有效!!


以上是关于解决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(示例代码

解决mysqldump备份报错: Couldn't execute 'SHOW FIELDS FROM Unknown error 1356

2003 - Can‘t connect to MySQL server on ‘localhost‘ (10061 “Unknown error“) 解决方案

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