java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sher.jasonrecyclerdemo/com.example.sher.jasonrecyclerdemo.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class android.support.v4.view.ViewPager

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Sherzad
, 1 year ago
Unable to start activity ComponentInfo{com.example.sher.jasonrecyclerdemo/com.example.sher.jasonrecyclerdemo.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class android.support.v4.view.ViewPager
via Stack Overflow by Bala
, 2 years ago
Unable to start activity ComponentInfo{com.jams.lite/com.jams.lite.WelcomeActivity.WelcomeActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class android.support.v4.view.ViewPager
via Stack Overflow by Harts
, 2 years ago
Unable to start activity ComponentInfo{org.myapp.myapp/org.myapp.myapp.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class com.android.internal.widget.ActionBarView
via Stack Overflow by user1140656
, 1 year ago
Unable to start activity ComponentInfo{com.test/com.test.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class com.android.internal.widget.ActionBarView
via Stack Overflow by SHASHANK Balaganchi
, 2 years ago
Unable to start activity ComponentInfo{shashank_balaganchi.musicplayer/shashank_balaganchi.musicplayer.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class com.andreadec.musicplayer.ui.CheckableImageButton
via blogspot.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{http://ift.tt/1e30xM6}: android.view.InflateException: Binary XML file line #37: Error inflating class com.android.internal.widget.ActionBarView
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sher.jasonrecyclerdemo/com.example.sher.jasonrecyclerdemo.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class android.support.v4.view.ViewPager
at android.content.res.Resources.loadDrawable(Resources.java:2106)
at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
at android.view.View.(View.java:3596)
at android.view.View.(View.java:3526)
at android.view.ViewGroup.(ViewGroup.java:464)
at android.support.v4.view.ViewPager.(ViewPager.java:396)
at java.lang.reflect.Constructor.constructNative(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:594)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276)
at com.example.sher.jasonrecyclerdemo.MainActivity.onCreate(MainActivity.java:87)
at android.app.Activity.performCreate(Activity.java:5312)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2552)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2653)
at android.app.ActivityThread.access$800(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5872)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
28 times, 7 months ago
17 times, 8 months ago

Write tip

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