Hello,

I am a new android programmer trying to complete this 
tutorial: 
https://developer.android.com/training/basics/firstapp/building-ui.html
After following all the instructions on the above page and running the 
code, I get the following error:

Error:(2) No resource identifier found for attribute 'layout_behavior' in 
package 'com.example.kevin.myfirstapp'

The error appears to be associated with the "app:layout_behavior" attribute 
in the following section of code:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
    xmlns:app="http://schemas.android.com/apk/res-auto";
    xmlns:tools="http://schemas.android.com/tools";
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:showIn="@layout/content_my">


Could you please help me fix this error?


Thanks,

Kevin Chen

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d2bcd31f-2211-4482-a774-310885a01258%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to