Note: This string resource has the same name as the element ID: edit_message. However, references to resources are always scoped by the resource type (such as id or string), so using the same name does not cause collisions. "
在上面什么呢给出文本“引用资源总是作用域”在上下文中是指以下XML片段添加字符串资源
<EditText android:id="@+id/edit_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
恩,给我们看你的strings.xml文件....? – Razgriz
保持更改edit_message在String.xml文件中的edit_mes并尝试在编辑文本提示中使用android:hint =“@ string/edit_mes” –