1. Are you ready for the Galaxy S20? Here is everything we know so far!


Discussion in 'Android Development' started by eforce, Aug 3, 2010.

  1. eforce

    eforce Lurker
    Thread Starter

    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)



    1. Download the Forums for Android™ app!


  2. Boogs

    Boogs Member

    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?
  3. boarderx

    boarderx Lurker

    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.

Share This Page