android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.CardView

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

A required library class, SdkReceiver, is not loaded. Make sure your SDK classpath is configured correctly in the environment variable or use the -cp or -classpath option if running on the command line, to point to your SDK jar files.

,
via github.io by Unknown author

You need to setup a GlideModule before use Glide.

Solutions on the web

via Stack Overflow by Suraj Adhiraj
, 1 year ago
Binary XML file line #2: Error inflating class android.support.v7.widget.CardView
via Stack Overflow by L. Swifter
, 2 years ago
Binary XML file line #2: Error inflating class TextView
via Stack Overflow by user1478588
, 2 years ago
Binary XML file line #2: Error inflating class fragment
via Stack Overflow by sj8494
, 2 years ago
Binary XML file line #18: Error inflating class fragment
via Stack Overflow by Unknown author, 2 years ago
Binary XML file line #24: Error inflating class LinearLayout
via Stack Overflow by Hello-World
, 2 years ago
Binary XML file line #2: Error inflating class fragment
android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.CardView
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.view.LayoutInflater.createView(LayoutInflater.java:559)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708)
at android.view.LayoutInflater.inflate(LayoutInflater.java:469)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at com.lic.smarttab.AbtOzarAdapter.getView(AbtOzarAdapter.java:58)
at android.widget.AbsListView.obtainView(AbsListView.java:2263)

Users with the same issue

4 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
39 times, 1 year ago
16 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.