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... :-(
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /reply/detail/tangibihk
-
YouTube API 不能在 iOS (iPhone/iPad) 工作,但在桌面浏览器工作正常?
it1352 07-30 -
使用 iPhone 进行移动设备管理
it1352 07-23 -
保持在后台运行的 iPhone 应用程序完全可操作
it1352 07-25 -
iPhone,一张图像叠加到另一张图像上以创建要保存的新图像?(水印)
it1352 07-17 -
在android同时打开手电筒和前置摄像头
it1352 09-28 -
扫描 NFC 标签时是否可以启动应用程序?
it1352 08-02 -
检查邮件是否发送成功
it1352 07-25 -
Android微调工具-删除当前选择
it1352 06-20 -
希伯来语的空格句子标记化错误
it1352 06-22 -
Android App 和三星 Galaxy S4 不兼容
it1352 07-20