simple question . I got this
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">YYYYYY</string>
<string name="leaderBoard">XXXXX</string>
</resources>
in my res>values>strings.xml
Then in my Activity I try to pull out the leaderBoard value but java refuses to do so.
String string = getString(R.string.leaderBoard);
leaderBoard cannot be resolved into a field.
I have tried , cleaning up project , refreshing , still nothing. On the other hand I am able to retrieve app_name into an xml file like the manifest.xml . I m pretty sure that I m blind or something...
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data
android:name="com.google.android.gms.games.APP_ID"
android:value="@string/app_id" />
...