SecurityException:无法找到dex.jar android的字段 [英] SecurityException: Unable to find field for dex.jar android
问题描述
昨天晚上我升级到 ADT-21
并重新启动eclipse。然后eclipse说你需要将android工具更新到版本21.我下载了 window_installer21
并将其安装在我之前安装的window_installer的同一位置。所以它覆盖文件。然后我重启了日食,突然间所有的项目都停止了工作。 Eclipse始终打开错误。
SecurityException:无法找到dex.jar的字段
当我尝试启动一个项目它停止与以下错误
未知错误:无法构建:文件dx.jar没有从SDK文件夹加载
SDK管理器也没有打开。
我尝试过:
- 清除所有项目
- 重新查看eclipse和电脑约20-30个主题
- 卸载Android SDk,JAVA并重新安装
- 设置find_java.bat文件的路径
- 通过互联网搜索6小时,阅读一些表单
没有什么似乎有效。
出现警告您更新到最新的sdk并打开相应的工具。试过这个(几次 - 每次重新启动),没有任何效果。
相反,答案是..
-
在eclispe中,找到您的Android sdk的位置(Window-> Preferences-> Android,SDK位置位于页面顶部)。
-
关闭eclispe。
-
找到磁盘上的sdk - 运行独立的SDK Manager.exe第一次打开失败 - 但是等待一两秒钟,gui出现)。注意 - 这是以前由eclipse打开的gui!
-
按照推荐使用所有更新。将出现一个对话框,指出管理工具本身已更新,并应重新启动。
-
重新启动该工具 - 重新启动并关闭更多更新。 p>
-
开始eclipse - 问题已经消失!
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
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 Manager is also not opening.
I have tried:
- Clearing all project
- Re stared eclipse and computer about 20-30 timmes
- Uninstall Android SDk, JAVA and reinstalled it
- Setting the path of find_java.bat file
- Searched 6 hour over internet and read some form
Nothing seems to work.
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.
Instead the answer was ..
In eclispe, find the location of your android sdk (Window->Preferences->Android and the SDK location is at the top of the page).
Close down eclispe.
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.
Start eclipse - the problem has gone away!
这篇关于SecurityException:无法找到dex.jar android的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!