android - error: ``Syntax error on token "heading", delete this token'' in eclipse -


so following tutorial on how make tictactoegame. got error same this: no resource found matches given name (at 'title' value '@string/action_settings') added line in code:

<string name="action_settings">settings</string> 

now got new error: ``syntax error on token "heading", delete token''.

error in class: r.java > r > string.

this line:

 public static final class string {         public static final int =0x7f0a0028; \\red mark @ int 

i think error because ``settings'' isnt word should use, im not quit sure.

this main.xml:

<menu xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     tools:context="com.example.tictactoetest.mainactivity" >      <item         android:id="@+id/action_settings"         android:orderincategory="100"         android:title="@string/action_settings"         app:showasaction="never"/>  </menu> 

this strings.xml:

<?xml version="1.0" encoding="utf-8"?> <resources>      <string name="app_name">testjk</string>     <string name="hello_world">hello world!</string>     <string name="turn_human">your turn.</string><string name="first_human">you go first.</string>     <string name="turn_computer">android\'s turn</string>     <string name="result_tie">it\'s tie!</string>     <string name="result_human_wins">you won!</string>     <string name="result_android_wins">you lose!</string>     <string name="one">1</string>     <string name="two">2</string>     <string name="three">3</string>     <string name="four">4</string>     <string name="five">5</string>     <string name="six">6</string>     <string name="seven">7</string>     <string name="eight">8</string>     <string name="nine">9</string>     <string name="info">info</string>     <string name="human">human:  </string>     <string name="ties">ties:  </string>     <string name="android">android:  </string>     <string name="contact_heading">contact info</string>     <string name="action_settings">settings</string>     <string name="contact_info">          <b>name:</b> hiii         <b>achternaam</b> hello         <b>email</b> test@haha.com         </string>         <string name="about heading"> </string>         <string name="">this app allowed play game tic tac toe              blablalbalbalblalbalblalbalblablalblablalblalbla</string>   </resources> 

  public static final int =0x7f0a0028; \\red mark @ int 

there's no name here

eg:

   public static final int tictacblahblah = 0x7f0a0028; 

because of

    <string name="">this app allowed play game tic tac toe          blablalbalbalblalbalblalbalblablalblablalblalbla</string> 

put name in, , things should work.

    <string name="tictacblahblah">this app allowed play game tic tac toe          blablalbalbalblalbalblalbalblablalblablalblalbla</string> 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -