activity_main.xml中:
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
在vaules下的Strings.xml定义了:
Hello World
但是它依然提示Cannot resolve symbol '@string/hello_world'
要么as卡了,要么你写错了,重启就好,检查下吧
首先看 hello_world 是否写对了 对了的话 clean 或者 rebuild 一下
vaules下
应该是strings.xml 小写开头