码上敲享录 > android开发实例 > Run Android Application时 Unable to build: the file dx.jar was not loaded from the SDK folder!

Run Android Application时 Unable to build: the file dx.jar was not loaded from the SDK folder!

上一章章节目录下一章 2018-04-04已有1858人阅读 评论(0)

执行Run-->Android Application打包apk时报错如下:

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


解决方法:

原因是Android SDK Build-tools版本过高所致,我的Android SDK Build-tools版本是27.0.3,而Android SDK tools版本是25.2.5,一般Android SDK Build-tools版本不能高于Android SDK tools版本,所以我使用SDK Manager.exe下载Android SDK Build-tools的25.0.0版本,删除27.0.3版本,重启myeclipse,发现成功了,还有别的方法请留言,谢谢大家的意见。


本文地址:http://www.yayihouse.com/yayishuwu/chapter/1134

向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
1

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交