机器人ADT错误,dx.jar未从SDK文件夹装 [英] Android ADT error, dx.jar was not loaded from the SDK folder

查看:1524
本文介绍了机器人ADT错误,dx.jar未从SDK文件夹装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载的Eclipse伽利略和安装ADT10和使用本指南试图将PhoneGap的应用程序: http://www.phonegap.com/start 但每次我尝试建立即时得到这个错误: 未知错误:无法建立:文件dx.jar不是从SDK文件夹中加载

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.

推荐答案

这是由不完整/凌乱升级到最新版本,这将导致dx.jar缺少 {Android SDK中DIR} \平台 - 工具\ LIB \

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

解决方法:

查找您的最新dx.jar在 {Android SDK中DIR} \平台\ *

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

和它复制到:

{Android SDK中DIR} \平台工具\ lib目录\

重新启动Eclipse,洁净您的项目,一切都应该正常工作。

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

(如平台工具\ LIB 目录缺少完全,你将不得不重新安装的Andr​​oid SDK平台工具使用SDK管理器。重新安装dx.jar后应在那里所以没有抄袭,将需要)

(If platform-tools\lib 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)

如果你不能找到 dx.jar 中的任何的{Android SDK中DIR} \平台\ * 子目录,你将不得不开始SDK管理器并安装了Android 1.6 SDK。

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} \平台\ Android的4 \工具\ lib目录\ 。 (我没有发现任何新的版本为2012-01-22的Andr​​oid SDK R15)。

For example on my machine latest was in {Android SDK dir}\platforms\android-4\tools\lib\. (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... :-(

这篇关于机器人ADT错误,dx.jar未从SDK文件夹装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆