• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps java.lang.NullPointerException

eforce

Lurker
When I make an Android project in Eclipse following this tutorial:

Android - Hello World

I get: java.lang.NullPointerException

When I try to open strings.xml under res/values/


Is there any way to fix this?

(Using Eclipse 3.6)


Regards,

eforce
 
I don't understand your problem fully.

From the op, I understand that you try to click on strings.xml in Eclipse, and you somehow get a NullPointerException? Without actually running the program at all?

Or, is it that you run your program, try to access a string contained within strings.xml, and then get a NullPointerException?
 
I ran into this recently. This is a known bug in Eclipse and a workaround is coming (at least the post I read stated that). One way to get around the error for Android development is:

Right-Click on the file
Select Open With > Android XML Resources Editor

It should open without the error.
 
Back
Top Bottom