• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

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

用户头像
it1352
帮助1

问题说明

我刚刚下载了 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.

正确答案

#1

这是由于升级到最新版本不完整/混乱导致 {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... :-(

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tangibihk
系列文章
更多 icon
同类精品
更多 icon
继续加载