Mark McCabe
Mark McCabe

Reputation: 53

Newbie string error

Can you tell me why there is an error on each string line?

<string> name="app_name">Bootle JFL</string>
<string> name="hello_world">Hello world</string>
<string> name="action_settings">Settings</string>

Upvotes: 2

Views: 44

Answers (3)

Raghunandan
Raghunandan

Reputation: 133580

Change to

 <string name="app_name">Bootle JFL</string>
 <string name="hello_world">Hello world</string>
 <string name="action_settings">Settings</string>

name is the attribute for the tag string and attribute must be within the string tag.

Read

http://developer.android.com/guide/topics/resources/string-resource.html

Upvotes: 2

Kenny Ballard
Kenny Ballard

Reputation: 161

you have 2 closing > should be like

<string name="app_name">Bootle JFL</string>

Upvotes: 0

Blackbelt
Blackbelt

Reputation: 157487

you closed the string tag too earlier

 <string name="app_name"> Bootle JFL</string> 

for all the strings,

Upvotes: 2

Related Questions