提示要用@string,用了后還是報錯,大家幫我解決下哦,謝謝
android:hint="@String/Please enter your name:"
提示錯誤:no resource found that matches the given name(at "text" with value '@String/Yname:')
一開始沒加@String,報錯提示需要用這個,后來加了,還是提示這個錯誤,
運行程序后報錯:Your project contains error(s),please fix them before running your application.
大神們給解決一下呀,捉急呢!
2017-01-11
看看你的配置文件(values->trings.xml)里有沒有Yname這個name。@string/后面接的是string配置文件里的名字,而不是內容。