简体   繁体   English

创建Android Project后Eclipse Juno崩溃

[英]Eclipse Juno crashes after creating Android Project

My Eclipse Juno crashes every single time after creating Android Project. 创建Android项目后,我的Eclipse Juno每次崩溃。 After I click on the Finish Button in the "New Android Project" wizard, the javaw.exe uses 100 % CPU-Time. "New Android Project"向导中单击“ Finish按钮后, javaw.exe使用100%CPU时间。

I was waiting for around 30 minutes, but Eclipse didn't react at all - so I had to kill the process every time. 我等待了大约30分钟,但是Eclipse完全没有反应-因此我每次都必须终止该过程。

The result is a broken useless project file. 结果是损坏的无用项目文件。

OS: Windows 7 SP1 x64
Java: 7 JDK x64
Eclipse: Juno 4.2.0

A fresh installation of Eclipse didn't resolve the problem. 全新安装的Eclipse无法解决问题。 I also reinstalled the Android SDK and ADT-Plugin, but nothing happened. 我还重新安装了Android SDK和ADT-Plugin,但没有任何反应。 It's only Android-Projects that are causing the problem. 造成此问题的只有Android项目。

Am I using a known incompatible configuration, or is this a bug? 我使用的是已知的不兼容配置,还是一个错误?

-Check your environment variable -检查环境变量

-Try Changing the eclipse workspace -尝试更改Eclipse工作区

-Give the 32 bit JDK a try -尝试使用32位JDK

You can also try checking out the windows log. 您也可以尝试签出Windows日志。 Windows Event Viewer might have caught the exception that Eclipse might have thrown. Windows事件查看器可能捕获了Eclipse可能引发的异常。

Last while not ideal, you can try creating your project via the command line: http://developer.android.com/training/basics/firstapp/creating-project.html#CommandLine 最后,虽然不理想,但您可以尝试通过命令行创建项目: http : //developer.android.com/training/basics/firstapp/creating-project.html#CommandLine

Try increasing Memory settings for Eclipse. 尝试增加Eclipse的“内存”设置。 Follow steps from here 这里开始

Quoted from the link. 从链接引用。

Increase Eclipse's Memory Settings The Android project is large enough that Eclipse's Java VM sometimes runs out of memory while compiling it. 增加Eclipse的内存设置Android项目足够大,以至于Eclipse的Java VM在编译时有时会耗尽内存。 Avoid this problem by editing the eclipse.ini file. 通过编辑eclipse.ini文件来避免此问题。 On Apple OSX the eclipse.ini file is located at 在Apple OSX上,eclipse.ini文件位于

/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini Memory-related defaults (as of Eclipse 3.4): /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini与内存相关的默认值(从Eclipse 3.4开始):

-Xms40m -Xms40m
-Xmx256m -Xmx256m
-XX:MaxPermSize=256m -XX:MaxPermSize参数=256米
Recommended settings for Android development: Android开发的推荐设置:

-Xms128m -Xms128m
-Xmx512m -Xmx512m
-XX:MaxPermSize=256m -XX:MaxPermSize参数=256米

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM