java.lang.RuntimeException: Unable to start activity ComponentInfo{org.example.project/org.example.project.ActivityMain}: android.view.InflateException: Binary XML file line #12: Error inflating class android.support.v7.preference.PreferenceCategory


Samebug tips

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.


1 year ago

Solutions on the web

Solution icon of stackoverflow
Unable to start activity ComponentInfo{org.example.project/org.example.project.ActivityMain}: android.view.InflateException: Binary XML file line #12: Error inflating class android.support.v7.preference.PreferenceCategory

Solution icon of github
Unable to start activity ComponentInfo{com.example.android.uamp/com.example.android.uamp.ui.MusicPlayerActivity}: android.view.InflateException: Binary XML file line #25: Error inflating class android.support.v7.widget.Toolbar

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.faiz.news/com.faiz.news.ui.MainActivity}: android.view.InflateException: Binary XML file line #14: Error inflating class android.support.v7.widget.RecyclerView

Solution icon of web
via co.uk by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.faiz.news/com.faiz.news.ui.MainActivity}: android.view.InflateException: Binary XML file line #14: Error inflating class android.support.v7.widget.RecyclerView

Solution icon of github
Unable to start activity ComponentInfo{com.dsatab/com.dsatab.activity.ItemEditActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class android.support.v7.widget.GridLayout

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.mycompany.myapp/com.mycompany.myapp.MainActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar

Solution icon of github
Unable to start activity ComponentInfo{com.sothree.slidinguppanel.demo/com.sothree.slidinguppanel.demo.DemoActivity}: android.view.InflateException: Binary XML file line #23: Error inflating class android.support.v7.widget.Toolbar

Solution icon of github
via GitHub by juamor86
, 1 year ago
Unable to start activity ComponentInfo{github.hellocsl.cursorwheellayout/github.hellocsl.cursorwheellayout.MainActivity}: android.view.InflateException: Binary XML file line #12: Error inflating class github.hellocsl.cursorwheellayout.widget.SimpleTextCursorWheelLayout

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.xoco.checker/com.xoco.checker.pref.SettingsActivity}: android.view.InflateException: Binary XML file line #12: Error inflating class fragment

Solution icon of web
via androidhub4you.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{maping.amit.com/maping.amit.com.Splash}: android.view.InflateException: Binary XML file line #12: Error inflating class fragment

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.example.project/org.example.project.ActivityMain}: android.view.InflateException: Binary XML file line #12: Error inflating class android.support.v7.preference.PreferenceCategory
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
	at android.app.ActivityThread.access$700(ActivityThread.java:140)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:4921)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #12: Error inflating class android.support.v7.preference.PreferenceCategory
	at android.support.v7.preference.g.a(Unknown Source)
	at android.support.v7.preference.g.a(Unknown Source)
	at android.support.v7.preference.g.a(Unknown Source)
	at android.support.v7.preference.g.a(Unknown Source)
	at android.support.v7.preference.g.a(Unknown Source)
	at android.support.v7.preference.h.a(Unknown Source)
	at android.support.v7.preference.h.b(Unknown Source)
	at org.exampple.project.ActivityMain.onCreate(Unknown Source)
	at android.app.Activity.performCreate(Activity.java:5206)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
	... 11 more
Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
	at java.lang.Class.getConstructorOrMethod(Class.java:460)
	at java.lang.Class.getConstructor(Class.java:431)
	... 22 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

6 times, 10 months ago
12 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
4 times, 1 year ago
71 more bugmates