Problem with XML layout


#1

I keep having a problem with fragment_crime.xml. In trying to figure out what’s wrong, I copied the code directly from the nerd ranch downloaded code xml file, but I still have the error.

The code shows no error, but when I switch to graphical layout it shows nothing, and the bottom has a yellow box with:
Exception raised during rendering: java.lang.System.arraycopy…
Exception details are logged in Window > Show View > Error Log

I can’t find ‘error log’ in the show view menu.

I triple checked every line of code. I also tried re-creating the project and it still didn’t fix it.

Any ideas?

Edit: when I remove the EditText widget from the layout file, the error disappears. I’ve tried removing different parts of the EditText, such as id, hint, and layout but the error remains.

Edit 2: I should note that the app runs without problem. Just can’t view the layout in the graphical layout.


#2

Here are some screen shots of the XML code and graphical layout. I’m using the Eclipse Juno from the Android developers download page.

https://dl.dropboxusercontent.com/u/7834263/android_xml.png

https://dl.dropboxusercontent.com/u/7834263/android_graphical.png


#3

Which API level are you targeting? If it’s Android Wear, then EditText is not supported and you’ll receive this error. Have a look at this Stackoverflow article: http://stackoverflow.com/questions/24451490/exception-raised-during-rendering-java-lang-system-arraycopy