找不到与layout_hint中给定名称匹配的资源

Nit*_*ish 6 xml sdk android

我是新的,实际上这是我对android程序的第一次尝试.我正在关注android开发者培训网站.我activity_main.xml看起来如下:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"

tools:context=".MainActivity" >

<EditText android:id="@+id/edit_message"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" 
    android:layout_hint="@string/edit_message"/>
Run Code Online (Sandbox Code Playgroud)

现在它显示错误和警告,如:

警告 - This text field does not specify an inputType or a hint

错误 - error:Error:No resource found that matches the given name( at 'layout_hint' with the value '@string/edit_message')

Neo*_*eoh 10

您需要定义的价值edit_messageres/values/strings.xml文件.至于警告,请查看此链接.