android - No resource found that matches the given name, even though its not supposed to be there -


so activity.xml , showing me errornd

no resource found matches given name (at 'text' value '@string/hello_world'). 

i dont have @string/hello_world anywhere 1 activity.xml

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:gravity="center"     android:orientation="vertical" >      <linearlayout          android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:gravity="center"         android:orientation="horizontal" >          <button              android:id="@+id/press_button"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="@string/press_button"         />     </linearlayout>  </linearlayout> 

this strings.xml

<?xml version="1.0" encoding="utf-8"?> <resources>      <string name="app_name">gpslocater</string>     <string name="action_settings">settings</string>     <string name="press_button">press button</string>  </resources> 

when create activity automatically put hello world in strings , in activity got rid of error time?

remove r.java in gen directory in project. should recreate r.java. should fine then.


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -