SecurityException:无法找到dex.jar android的字段 [英] SecurityException: Unable to find field for dex.jar android

查看:527
本文介绍了SecurityException:无法找到dex.jar android的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天晚上我升级到 ADT-21 并重新启动eclipse。然后eclipse说你需要将android工具更新到版本21.我下载了 window_installer21 并将其安装在我之前安装的window_installer的同一位置。所以它覆盖文件。然后我重启了日食,突然间所有的项目都停止了工作。 Eclipse始终打开错误。
SecurityException:无法找到dex.jar的字段



当我尝试启动一个项目它停止与以下错误
未知错误:无法构建:文件dx.jar没有从SDK文件夹加载



SDK管理器也没有打开。



我尝试过:


  1. 清除所有项目

  2. 重新查看eclipse和电脑约20-30个主题

  3. 卸载Android SDk,JAVA并重新安装

  4. 设置find_java.bat文件的路径

  5. 通过互联网搜索6小时,阅读一些表单

这个。和 this on e。



没有什么似乎有效。

解决方案

出现警告您更新到最新的sdk并打开相应的工具。试过这个(几次 - 每次重新启动),没有任何效果。



相反,答案是..


  1. 在eclispe中,找到您的Android sdk的位置(Window-> Preferences-> Android,SDK位置位于页面顶部)。


  2. 关闭eclispe。


  3. 找到磁盘上的sdk - 运行独立的SDK Manager.exe第一次打开失败 - 但是等待一两秒钟,gui出现)。注意 - 这是以前由eclipse打开的gui!


  4. 按照推荐使用所有更新。将出现一个对话框,指出管理工具本身已更新,并应重新启动。


  5. 重新启动该工具 - 重新启动并关闭更多更新。 p>


  6. 开始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:

  1. Clearing all project
  2. Re stared eclipse and computer about 20-30 timmes
  3. Uninstall Android SDk, JAVA and reinstalled it
  4. Setting the path of find_java.bat file
  5. Searched 6 hour over internet and read some form

This, this.and this one also.

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 ..

  1. In eclispe, find the location of your android sdk (Window->Preferences->Android and the SDK location is at the top of the page).

  2. Close down eclispe.

  3. 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!

  4. Take all the updates as recommended. A dialog box appears indicating that the management tool itself has been updated and should be restarted.

  5. Restart the tool - take any more updates recommended and close.

  6. Start eclipse - the problem has gone away!

这篇关于SecurityException:无法找到dex.jar android的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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