Hell.Bent
Hell.Bent

Reputation: 1677

Android Eclipse - error trying to open or edit /res/values/strings.xml - NullPointerException

getting error:

An error has occurred. See error log for more details. java.lang.NullPointerException

when I attempt to edit this file in my eclipse Android sdk project.

Not seeing anything in LogCat or the Console.

I need to update this file to rename the Project.

Upvotes: 1

Views: 1278

Answers (2)

Vlad
Vlad

Reputation: 1680

Go to the XML/XML Files/Editor preference page and turn off the "Use inferred grammar..." setting.

Source: http://groups.google.com/group/android-developers/browse_thread/thread/5ea69f7367b725a5/3ff91fea09a34b4a

Upvotes: 1

quanticle
quanticle

Reputation: 5020

Have you looked at this question? According to it, the application's name is set to be the name of any activity that declares

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

The app_name, in this case, may not be of any significance, because the name of the application is being set by the component activities of the application, rather than by the application itself.

Upvotes: 1

Related Questions