0
所以这是我activity.xml并且它显示我errornd没有资源发现在给定的名字相匹配,即使它不应该在那里
No resource found that matches the given name (at 'text' with value '@string/hello_world').
我没有@字符串/程序hello_world一个在任何地方我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>
这是我的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>
当你创建一个活动就自动盟友把字符串和活动中的你好世界,但我摆脱它,所以这次是什么错误?
作为评论会更好。 – DigCamara