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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -