I'm trying to follow the Android tutorial: http://developer.android.com/training/basics/firstapp/building-ui.html But when I get to the part where you need to add the button, my Android studio will return these errors :
Cannot resolve symbol '@string/edit_message' Cannot resolve symbol '@string/button_send'
XML Code:
<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" > <EditText android:id="@+id/edit_message" android:layout_width="wrap_content" android:layout_height="wrap_content" android:hint="@string/edit_message" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button_send" /> </LinearLayout>
What am I doing wrong here? I cannot find the right solution on other stackoverflow issues, and I'm sure I used the correct code in the android tutorial from Google.
source share