title: Android binary layout inflate exception : ClassNotFoundException: Didn't find class "android.view.layout" on path:
body: <p>My layout</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/tools&quot;
      xmlns:card_view=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:orientation=&quot;vertical&quot;&gt;
  
      &lt;android.support.v7.widget.CardView
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_gravity=&quot;center&quot;
          android:layout_margin=&quot;10dp&quot;
          card_view:cardCornerRadius=&quot;4dp&quot;&gt;
  
          &lt;RelativeLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;&gt;
  
              &lt;FrameLayout
                  android:id=&quot;@+id/header&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;&gt;
  
                  &lt;de.hdodenhof.circleimageview.CircleImageView xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
                      android:id=&quot;@+id/profilePic&quot;
                      android:layout_width=&quot;96dp&quot;
                      android:layout_height=&quot;96dp&quot;
                      android:layout_gravity=&quot;center_horizontal&quot;
                      android:src=&quot;@drawable/avatar&quot; /&gt;
  
              &lt;/FrameLayout&gt;
  
              &lt;RelativeLayout
                  android:id=&quot;@+id/user_view&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_below=&quot;@+id/header&quot;&gt;
  
                  &lt;ImageView
                      android:id=&quot;@+id/divider&quot;
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;1dp&quot;
                      android:layout_marginBottom=&quot;5dp&quot;
                      android:layout_marginTop=&quot;5dp&quot;
                      android:src=&quot;@color/contentDividerLine&quot; /&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/username&quot;
                      style=&quot;@style/Base.Widget.AppCompat.Button.Borderless&quot;
                      android:layout_width=&quot;wrap_content&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:layout_centerHorizontal=&quot;true&quot;
                      android:layout_gravity=&quot;bottom&quot;
                      android:drawablePadding=&quot;5dp&quot;
                      android:padding=&quot;8dp&quot;
                      android:text=&quot;Name&quot;
                      android:textColor=&quot;@color/Black&quot; /&gt;
  
  
              &lt;/RelativeLayout&gt;
  
              &lt;RelativeLayout
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_below=&quot;@+id/user_view&quot;&gt;
  
                  &lt;ImageView
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;1dp&quot;
                      android:layout_marginBottom=&quot;5dp&quot;
                      android:layout_marginTop=&quot;5dp&quot;
                      android:src=&quot;@color/contentDividerLine&quot; /&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/email&quot;
                      style=&quot;@style/Base.Widget.AppCompat.Button.Borderless&quot;
                      android:layout_width=&quot;wrap_content&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:layout_centerHorizontal=&quot;true&quot;
                      android:layout_gravity=&quot;bottom&quot;
                      android:drawablePadding=&quot;5dp&quot;
                      android:padding=&quot;8dp&quot;
                      android:text=&quot;Email&quot;
                      android:textColor=&quot;@color/Black&quot; /&gt;
  
  
              &lt;/RelativeLayout&gt;
          &lt;/RelativeLayout&gt;
      &lt;/android.support.v7.widget.CardView&gt;
  
      &lt;android.support.v7.widget.CardView xmlns:card_view=&quot;http://schemas.android.com/apk/res-auto&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_gravity=&quot;center&quot;
          android:layout_margin=&quot;10dp&quot;
          card_view:cardCornerRadius=&quot;4dp&quot;&gt;
  
          &lt;RelativeLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;&gt;
  
              &lt;RelativeLayout
                  android:id=&quot;@+id/settings_header&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/settings_title&quot;
                      style=&quot;@style/Base.Widget.AppCompat.Button.Borderless&quot;
                      android:layout_width=&quot;wrap_content&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:layout_alignParentStart=&quot;true&quot;
                      android:layout_centerHorizontal=&quot;true&quot;
                      android:layout_gravity=&quot;bottom&quot;
                      android:drawablePadding=&quot;5dp&quot;
                      android:padding=&quot;8dp&quot;
                      android:text=&quot;Settings&quot;
                      android:textColor=&quot;@color/Black&quot; /&gt;
  
                  &lt;ImageView
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;1dp&quot;
                      android:layout_below=&quot;@id/settings_title&quot;
                      android:layout_marginBottom=&quot;5dp&quot;
                      android:layout_marginTop=&quot;5dp&quot;
                      android:src=&quot;@color/contentDividerLine&quot; /&gt;
  
  
              &lt;/RelativeLayout&gt;
  
              &lt;RelativeLayout
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_below=&quot;@+id/settings_header&quot;&gt;
  
                  &lt;ScrollView
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;match_parent&quot;&gt;
  
                      &lt;LinearLayout
                          android:layout_width=&quot;match_parent&quot;
                          android:layout_height=&quot;match_parent&quot;
                          android:orientation=&quot;vertical&quot;&gt;
  
                          &lt;include
                              layout=&quot;@layout/notification_pref&quot;
                              app:label=&quot;@{@string/show_bounds}&quot; /&gt;
  
                          &lt;include
                              layout=&quot;@layout/location_pref&quot;
                              app:label=&quot;@{@string/show_offsets}&quot; /&gt;
  
                          &lt;include
                              layout=&quot;@layout/sync_pref&quot;
                              app:label=&quot;@{@string/show_bounds}&quot; /&gt;
  
                          &lt;include
                              layout=&quot;@layout/analytics_pref&quot;
                              app:label=&quot;@{@string/show_offsets}&quot; /&gt;
  
                      &lt;/LinearLayout&gt;
  
                  &lt;/ScrollView&gt;
              &lt;/RelativeLayout&gt;
          &lt;/RelativeLayout&gt;
      &lt;/android.support.v7.widget.CardView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>Exception</p>
  <pre><code>01-05 18:17:15.102 10834-10834/com.creativemoments.unipoint E/CustomActivityOnCrash: 
      App has crashed, executing CustomActivityOnCrash's UncaughtExceptionHandler
                                                                                   
  
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.creativemoments.unipoint/com.creativemoments.unipoint.profile.ProfileActivity}:
      android.view.InflateException: Binary XML file line #2: Error inflating class layout
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2308)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2368)
  at android.app.ActivityThread.access$800(ActivityThread.java:144)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1285)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:135)
  at android.app.ActivityThread.main(ActivityThread.java:5233)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
  Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class layout
  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:757)
  at android.view.LayoutInflater.parseInclude(LayoutInflater.java:892)
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
  at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
  at com.creativemoments.unipoint.profile.ProfileActivity.onCreate(ProfileActivity.java:28)
  at android.app.Activity.performCreate(Activity.java:6001)
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2261)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2368) 
  at android.app.ActivityThread.access$800(ActivityThread.java:144) 
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1285) 
  at android.os.Handler.dispatchMessage(Handler.java:102) 
  at android.os.Looper.loop(Looper.java:135) 
  at android.app.ActivityThread.main(ActivityThread.java:5233) 
  at java.lang.reflect.Method.invoke(Native Method) 
  at java.lang.reflect.Method.invoke(Method.java:372) 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898) 
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693) 
  Caused by: java.lang.ClassNotFoundException: Didn't find class &quot;android.view.layout&quot; on path: DexPathList[[zip file &quot;/data/app/com.creativemoments.unipoint-1/base.apk&quot;],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
  at android.view.LayoutInflater.createView(LayoutInflater.java:571)
  at android.view.LayoutInflater.onCreateView(LayoutInflater.java:665)
  at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:65)
  at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
  at android.view.LayoutInflater.parseInclude(LayoutInflater.java:892) 
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:802) 
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) 
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) 
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) 
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) 
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:504) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:414) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:365) 
  at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) 
  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143) 
  at com.creativemoments.unipoint.profile.ProfileActivity.onCreate(ProfileActivity.java:28) 
  at android.app.Activity.performCreate(Activity.java:6001) 
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2261) 
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2368) 
  at android.app.ActivityThread.access$800(ActivityThread.java:144) 
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1285) 
  at android.os.Handler.dispatchMessage(Handler.java:102) 
  at android.os.Looper.loop(Looper.java:135) 
  at android.app.ActivityThread.main(ActivityThread.java:5233) 
  at java.lang.reflect.Method.invoke(Native Method) 
  at java.lang.reflect.Method.invoke(Method.java:372) 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898) 
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693) 
  Suppressed: java.lang.ClassNotFoundException: android.view.layout
  at java.lang.Class.classForName(Native Method)
  at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
  at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
  ... 32 more
  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
  </code></pre>