升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

时间:2020-12-07 17:21:09

旧版的SDK管理器里面最高只能安装Android 3.2 API,需要更新SDK管理器版本后才能安装Android 4.0、Android 4.1,方法如下:

http://blog.****.net/aminfo/article/details/7788614

第一步:打开SDK管理器
升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

第二步:选择Available packages

升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

第三步:点击“Add Add-on Site...”,然后输入网址 http://developer.android.com/sdk/index.html

升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

第四步:将Android Repository打上勾,然后选择“Install Selected”
升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

然后等待安装:
升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

安装后重启SDK管理器,界面如下:
升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

然后选择你要安装的Android版本吧。

安装完后重新打开Eclipse,可能会出现以下提示:

升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

没办法,只好再安装新版的ADT了,方法如下:

打开Eclipse -> Help -> Eclipse Marketplace,然后搜索关键词“ADT”,如下图:

升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

找到后,点击后面的“Install”按钮,选择安装。

升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

等待提示,然后根据提示下一步

升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

安装完成后,重启Eclipse。重启Eclipse的时候会初始,因此会比较卡,不要去处理,也不要去点击,放在一边让它慢慢初始化。

初始化完成后,进入发现LogCat的界面有点小变动,增加了一个“Scroll Lock”的功能,这个功能太有必要了。

升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误

如果安装不成功,可以参考

http://jingyan.baidu.com/article/da1091fbd232fe027949d653.html