When i'm testing the application in Android Studio i get this error: -


here error i'm getting , appricieate guys:

caused by: android.view.inflateexception: must specifiy layout in include tag: <include layout="@layout/layoutid" />

here <include layout="@layout/layoutid" /> in activty_main.xml:

<include android:layout="@layout/app_bar" android:id="@+id/app_bar"/> 

and here app_bar layout:

<android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android"  android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/colorprimary"> 

please can me this. i'm new here in java programming.

your exception message's containing answer: change include android:layout="@layout/app_bar" include layout="@layout/app_bar"


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -