Android ADT 错误,未从 SDK 文件夹加载 dx.jar

Android ADT error, dx.jar was not loaded from the SDK folder(Android ADT 错误,未从 SDK 文件夹加载 dx.jar)
本文介绍了Android ADT 错误,未从 SDK 文件夹加载 dx.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了 Eclipse Galileo 并安装了 ADT10,并尝试使用本指南创建 phonegap 应用程序:http://www.phonegap.com/start但是每次我尝试构建时都会收到此错误:未知错误:无法构建:未从 SDK 文件夹加载文件 dx.jar!

I just downloaded Eclipse Galileo and installed ADT10 and tried to a phonegap app using this guide: http://www.phonegap.com/start But each time i try to build im getting this error: Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

我知道这个论坛中已经有一些关于它的问题/答案,但它们对我没有用.

I know that there are already some questions/answers about it in this forum but they didnt work for me.

推荐答案

这是由于升级到最新版本不完整/混乱导致 {Android SDK dir}platform-toolslib 中缺少 dx.jar.

This is caused by incomplete/messy upgrade to latest version which results in dx.jar missing from {Android SDK dir}platform-toolslib.

解决方案:

{Android SDK dir}platforms* 中找到您最新的 dx.jar

Find your latest dx.jar in {Android SDK dir}platforms*

并将其复制到:

{Android SDK 目录}platform-toolslib

重启eclipse,clean你的项目,一切都应该按预期工作了.

Restart eclipse, clean your project and everything should work as expected.

(如果 platform-toolslib 目录完全丢失,您将不得不使用 SDK 管理器重新安装Android SDK platform-tools".重新安装后 dx.jar 应该在其中,因此不会复制需要)

(If platform-toolslib directory is missing entirely you will have to reinstall "Android SDK platform-tools" using SDK manager. After reinstall dx.jar should be in there so no copying will be needed)

如果您在任何 {Android SDK dir}platforms* 子目录中都找不到 dx.jar,则必须启动 SDK 管理器并安装 Android 1.6SDK.

If you can't find dx.jar in any of {Android SDK dir}platforms* subdirs you will have to start SDK manager and install Android 1.6 SDK.

例如,在我的机器上,最新的是 {Android SDK dir}platformsandroid-4 oolslib.(截至 2012-01-22 Android SDK R15,我没有找到任何更新的版本.

For example on my machine latest was in {Android SDK dir}platformsandroid-4 oolslib. (I did not find any newer version as of 2012-01-22 Android SDK R15).

我真的希望这对某人有用,因为我已经浪费了半天的时间来调查和寻找这样一个微不足道的错误的解决方案...... :-(

I really hope that this is useful for someone because I've wasted half a day investigating and looking for solution of such a trivial bug... :-(

这篇关于Android ADT 错误,未从 SDK 文件夹加载 dx.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Android This feature requires ASM7(Android此功能需要ASM7)
How to make Eclipse compile patched modules on JDK 9+ by passing the --patch-module javac option to my project compiler? (see pic)(如何通过向我的项目编译器传递--patch-MODULE javac选项,让Eclipse在JDK 9+上编译打了补丁的模块?(见图))
Compiling java class, #39;illegal start of type#39; and #39;lt;identifiergt; expected#39; errors(编译Java类,#39;和#39;lt;标识符gt;类型的非法开始预期#39;错误)
Cannot resolve symbol Theme.MaterialComponents.Light.NoActionBar (Android Studio)(无法解析符号Theme.MaterialComponents.Light.NoActionBar(Android Studio))
Drawing emojis on Android canvas using unicode values(使用Unicode值在Android画布上绘制表情符号)
I#39;m unable to get the right timezone offset with daylight(我无法获得正确的时区与日光的偏移)