SecurityException异常:找不到领域dex.jar机器人 [英] SecurityException: Unable to find field for dex.jar android
问题描述
昨天晚上我升级到 ADT-21
并重新启动蚀。然后蚀说你需要更新的Android工具21的版本,我下载了 window_installer21
在我的previous window_installer被安装在相同的位置安装。因此它覆盖该文件。然后我重新启动Eclipse和突然间所有的项目停止工作。日食总是与错误打开。
SecurityException异常:找不到领域dex.jar
Yesterday evening I upgrade to ADT-21
and restarted eclipse. Then eclipse said that you need to update android tool to version 21. I downloaded window_installer21
and install it in the same location where my previous window_installer was installed. So it overwrite the file. Then I restarted eclipse and suddenly all project stop working. Eclipse always open with the error.
SecurityException: Unable to find field for dex.jar
当我尝试推出一个项目,它与下面的错误停止
未知错误:无法建立:文件dx.jar不是从SDK文件夹中加载
And when i try to launch a project it stops with the below error
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
SDK管理器也无法打开。
SDK Manager is also not opening.
我曾尝试:
- 清除所有项目
- 重新盯着日食和计算机约20-30 timmes
- 卸载Android SDK中,Java和重新安装了
- 设置find_java.bat文件的路径
- 在搜索到6每小时能上网,看了一些形式
这,<一个href="http://stackoverflow.com/questions/5323684/error-while-creating-new-project-in-android">this.and <一href="http://stackoverflow.com/questions/5228453/android-adt-error-dx-jar-was-not-loaded-from-the-sdk-folder">this一也。
似乎没有任何工作。
推荐答案
则会弹出警告您更新到最新的SDK并打开相应的工具。尝试这种(多次 - 每次都要重新启动)。没有效果
A popup appears warning you to update to the latest sdk and opens the appropriate tool. Tried this (several times - restarting each time) with no effect.
相反的答案是...
-
在Eclispe的,找到你的Android SDK中的位置。(窗口 - > preferences-> Android和SDK的位置是在页面的顶部)
In eclispe, find the location of your android sdk (Window->Preferences->Android and the SDK location is at the top of the page).
关闭eclispe打。
Close down eclispe.
查找磁盘上的SDK - 并运行独立的SDK的manager.exe(这似乎是失败的,当第一次打开 - 但等待第二个或两个GUI的出现)。注意! - 这是为previously由日食打开了同一个图形用户界面
Find the sdk on the disk - and run the standalone SDK Manager.exe (It appears to fail when first opened - but wait a second or two for the gui to appear). Note - this is the same gui that was previously opened by eclipse!
取所有更新的建议。出现一个对话框,表明管理工具本身已经更新,应重新启动。
Take all the updates as recommended. A dialog box appears indicating that the management tool itself has been updated and should be restarted.
重新启动该工具 - 建议采取任何更多的更新和关闭
Restart the tool - take any more updates recommended and close.
启动eclipse! - 这个问题已经消失
Start eclipse - the problem has gone away!
这篇关于SecurityException异常:找不到领域dex.jar机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!