Eclipse crashes when calling Android Layout Editor

I am new to Android and Eclipse. I downloaded Eclipse and Android ADT and created an ultra-simple Hello World application (only with auto- .java and .xml files).

Eclipse CRASHES (closes after a very short pause) when I do the following:

  • In Package Explorer, select AppName/res/layout/main.xml
  • Click or double-click or "Open With," then "Android Layout Editor"

(the application works fine in the Android emulator)

My configuration:

Android development tools 0.9.5.v200911191123-20404 com.android.ide.eclipse.adt.feature.group Eclipse IDE for Java developers 1.2.2.20100216-1730 epp.package.java

Windows XP

Can someone tell me what I am doing wrong or what is wrong with my configuration? Any suggestions on what to check? For any non-trivial application development, I need to be able to use the Layout Editor.

More ... I can choose main.xml and Right-Click and "Open With" any of: XML Editor, XML Schema Editor, text editor - no problem. The problem is limited to the Android layout editor.

THANKS!

+4
source share
4 answers

I found a problem.

I found .log files (under \ Android SDK \ eclipse-java-galileo ... \ eclipse) These files are apparently created by Eclipse when a fatal exception occurs. Having studied the last file, I saw

 # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d2521e1, pid=9156, tid=13952 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode) # Problematic frame: # C [fontmanager.dll+0x121e1] 

and when I looked further, find the folder where fontmanager.dll is located.

Finding that "fontmanager.dll" was part of the Java runtime, I saw that I was using jre1.5.0_02, and when I checked the Sun site, I found that it was an outdated file. So I downloaded (from the Sun website) and installed the latest version of the Java runtime.

This is fixed! Android Layout Editor works without problems.

THANKS to Nathan for his efforts. As it turned out, his proposal did not solve this particular problem, but the information he provided would undoubtedly be useful.

+3
source

You need to upgrade jdk version to latest version. I found that most cases on the Internet are that jdk5 slowed down eclipse, and they were developed by upgrading to jdk6. I used jdk6, but the problem existed! Finally, I download the latest version (jdk7) and eclipse will no longer work!

+1
source

DONT do anything in eclipse while he says โ€œbuilding projectโ€ at the bottom right, he does it when you download eclipse, and when you start or add new files.

If you still have a problem, I cannot help you

0
source

If the answers above do not help, this was my solution:

I had a similar problem where every time I looked at the layout editor (although I could see the XML file), Eclipse crashed. I reinstalled Java, updated Java, and I even reinstalled Eclipse to no avail. It turns out that it was a damaged nvd3dum.dll video driver. The file name is in the error list.

0
source

Source: https://habr.com/ru/post/1302555/


All Articles