java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.kaconnect.multithreadingexample/com.example.kaconnect.multithreadingexample.MainActivity}: android.view.InflateException: Binary XML file line #60: Error inflating class android.widget.ListView


Solutions on the web17685

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.kaconnect.multithreadingexample/com.example.kaconnect.multithreadingexample.MainActivity}: android.view.InflateException: Binary XML file line #60: Error inflating class android.widget.ListView

Solution icon of github
Unable to start activity ComponentInfo{com.adguard.android.contentblocker/com.adguard.android.contentblocker.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class android.widget.ListView

Solution icon of github
via GitHub by geecko86
, 5 months ago
Unable to start activity ComponentInfo{com.geecko.QuickLyric/com.geecko.QuickLyric.MainActivity}: android.view.InflateException: Binary XML file line #19: Error inflating class android.widget.ListView

Solution icon of github
Unable to start activity ComponentInfo{com.adguard.android.contentblocker/com.adguard.android.contentblocker.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class android.widget.ListView

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.gridtestproject/com.example.gridtestproject.TestActivity}: android.view.InflateException: Binary XML file line #217: Error inflating class android.widget.ListView

Solution icon of github
via GitHub by geecko86
, 1 year ago
Unable to start activity ComponentInfo{com.geecko.QuickLyric/com.geecko.QuickLyric.MainActivity}: android.view.InflateException: Binary XML file line #19: Error inflating class android.widget.ListView

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.steve.database/com.steve.database.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class android.widget.ListView

Solution icon of web
Unable to start activity ComponentInfo{com.cj.serverconnect/com.cj.serverconnect.ActivityMessenger}: android.view.InflateException: Binary XML file line #8: Error inflating class android.widget.ListView

Solution icon of web
Unable to start activity ComponentInfo{com.steve.database/com.steve.database.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class android.widget.ListView

Solution icon of stackoverflow
via Stack Overflow by Junie Negentien
, 1 year ago
Unable to start activity ComponentInfo{com.example.junienegentein_screenshotapp/com.example.junienegentein_screenshotapp.AddMoreDetails}: android.view.InflateException: Binary XML file line #60: Error inflating class com.example.junienegentien_form.SquareImageView

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.kaconnect.multithreadingexample/com.example.kaconnect.multithreadingexample.MainActivity}: android.view.InflateException: Binary XML file line #60: Error inflating class android.widget.ListView
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2372)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2424)
	at android.app.ActivityThread.access$600(ActivityThread.java:162)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:194)
	at android.app.ActivityThread.main(ActivityThread.java:5400)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:525)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:837)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #60: Error inflating class android.widget.ListView
	at android.view.LayoutInflater.createView(LayoutInflater.java:613)
	at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
	at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
	at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:297)
	at android.app.Activity.setContentView(Activity.java:1881)
	at com.example.kaconnect.multithreadingexample.MainActivity.onCreate(MainActivity.java:37)
	at android.app.Activity.performCreate(Activity.java:5122)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1084)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2336)
	... 11 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Constructor.constructNative(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
	at android.view.LayoutInflater.createView(LayoutInflater.java:587)
	... 24 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=456; index=104202258
	at android.content.res.TypedArray.getResourceId(TypedArray.java:581)
	at android.widget.ListView.<init>(ListView.java:187)
	at android.widget.ListView.<init>(ListView.java:172)
	at java.lang.reflect.Constructor.constructNative(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
	at android.view.LayoutInflater.createView(LayoutInflater.java:587)
	at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
	at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
	at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:297)

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.