eclipse 打开eclipse时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5646889/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:09:34  来源:igfitidea点击:

error while opening eclipse

androideclipseandroid-2.2-froyo

提问by Neha

When I try opening eclipseit opens, but it shows one error i.e Android SDK content Loader has encountered a problem.parseSdkContent failed

当我尝试打开eclipse它时,它会打开,但显示一个错误,即Android SDK content Loader has encountered a problem.parseSdkContent failed

When I click on details button, it shows me parseSdkContent failed java.lang.NullPointeException.

当我单击详细信息按钮时,它会显示我parseSdkContent failed java.lang.NullPointeException

And when I tried to create AVD it shows error that Location of the android SDK has not been setup in the preferenceswhile I have already set the path in preferences.

当我尝试创建 AVD 时,它显示错误,Location of the android SDK has not been setup in the preferences虽然我已经在首选项中设置了路径。

Please help me. Because of this issue my work is pending.

请帮我。由于这个问题,我的工作正在等待中。

回答by Alejo

I work in this problem for 2 days. In my workspace I have 2 projects. After review both project.properties, project 1 reference project 2 and project 2 reference project 1. This cause a stackoverflow. I comment one line and the problem is solved.

我在这个问题上工作了 2 天。在我的工作区中,我有 2 个项目。在查看 project.properties 之后,项目 1 参考项目 2 和项目 2 参考项目 1。这会导致计算溢出。我注释了一行,问题就解决了。

回答by Albert-Jan Verhees

I had the same problem. This annoying error popped up every time I started Eclipse and even a reinstall didn't work.

我有同样的问题。每次启动 Eclipse 时都会出现这个烦人的错误,甚至重新安装也不起作用。

Look at the .log file in the .metadata of your workspace to find more about this error. Mine said:

查看工作区的 .metadata 中的 .log 文件以了解有关此错误的更多信息。我的说:

java.lang.NullPointerException at org.eclipse.core.internal.resources.ProjectDescription.hasPublicChanges(ProjectDescription.java:509)

java.lang.NullPointerException at org.eclipse.core.internal.resources.ProjectDescription.hasPublicChanges(ProjectDescription.java:509)

Eventually I found out that a .project file was missing a < name > tag that got lost somewhere when I renamed the project on the SVN server. So make sure the file isn't corrupt.

最终我发现 .project 文件缺少一个 < name > 标记,当我在 SVN 服务器上重命名该项目时,该标记在某处丢失了。所以请确保文件没有损坏。

<?xml version="1.0" encoding="UTF-8"?><projectDescription>
<name>ProjectName</name>
<comment></comment>
<projects>

回答by Harinder

Place your android-sdk-windows in the same directory where your eclipse folder is and the name shout be - android-sdk-windows .

将您的 android-sdk-windows 放在 eclipse 文件夹所在的同一目录中,名称为 - android-sdk-windows 。

回答by kakopappa

I have the same issue. I closed all the projects then you can set the Android SDK Location. Thereafter need to open one by one and fix

我有同样的问题。我关闭了所有项目,然后您可以设置 Android SDK 位置。此后需要一一打开并修复

回答by Azad Sarker

I got the same problem and killed my two hours to resolve the issues. I have checked my work space and got two projects where project.propertiesfile #project target= android-10as the similar target with one of my another project to integrate Facebook SDK. I have completely deleted one project and reinstalled Eclipse-Indio 4.2.1and then resolve the problem. Good luck!!

我遇到了同样的问题,花了两个小时来解决这些问题。我检查了我的工作空间并得到了两个项目,其中project.properties文件#project target= android-10作为类似目标与我的另一个项目集成Facebook SDK. 我已经完全删除了一个项目并重新安装Eclipse-Indio 4.2.1然后解决了问题。祝你好运!!

回答by Kuldip Kadam

Delete the avd file in your .android folder and restart the eclipse.. it should be mostly in c:/users/... search for avd in windows search. worked for me.

删除 .android 文件夹中的 avd 文件并重新启动 eclipse.. 它应该主要在 c:/users/... 在 windows 搜索中搜索 avd。对我来说有效。

回答by Muhammad

It seems Android throws these usual BS problems "Android Content SDK Loader..." and "R cannot be resolved ..." often when there are simple coding errors in String XML or Manifest.

当 String XML 或 Manifest 中存在简单的编码错误时,Android 似乎经常抛出这些常见的 BS 问题“Android Content SDK Loader...”和“R 无法解决...”。

I just happen to have my XML in string name="city-state-zip" while there should'nt be any special characters in the name. But I only found it when Android finally pointed me to this error through gen/package/R.java file

我只是碰巧在字符串 name="city-state-zip" 中有我的 XML,而名称中不应该有任何特殊字符。但我只有在 Android 最终通过 gen/package/R.java 文件指出这个错误时才发现它

回答by proooooo

It may be due to recently added library... In my case i had added two libraries andengine and box2d.. delete them and restart the eclipse and reinstall the libraries ...

这可能是由于最近添加的库...在我的情况下,我添加了两个库 andengine 和 box2d .. 删除它们并重新启动 eclipse 并重新安装库...

回答by Prakash

Delete the avd file in your .androidand then try to configure your new avd. It worked awesomely.

删除您的 avd 文件,.android然后尝试配置您的新 avd。它工作得非常好。