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

今天不小心删了一下几个sdk版本后装了最新api4.2,结果出现Location of the Android SDK has not been setup in the preferences

这样的问题。原因是sdk和adt版本不兼容,百度了一下午终于搞定

http://blog.csdn.net/chrisfxs/article/details/8394070

以为松了一口气结果又出现如标题的这个问题:

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

貌似还是不兼容的问题但这次如何百度都解决不了。

突然想起google

看了两个英文网页

结果就解决了。。。

源地址:http://stackoverflow.com/questions/5228453/android-adt-error-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!_第1张图片

这里的意思是,如果按照eclipse提示的话,应该先把 dx.jar文件复制,但是如果像我这样文件夹都不见的话

可以去下载1.6sdk来找。但是如果在platform-tools文件夹中联lib文件夹都没有(像我这样。。。)

就可以用下面方法



去sdkmanager里把android sdk platform-tools删掉再重装。

结果连第一步都不用就直接搞定。。。

这里提醒一句:多用google,多学英文

你可能感兴趣的:(android,android,android,安卓)