java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.united.reserver/com.example.united.reserver.Menu}: java.lang.RuntimeException: For ExpandableListView, use setAdapter(ExpandableListAdapter) instead of setAdapter(ListAdapter)

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

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by Omar Elshirbini
, 1 year ago
Unable to start activity ComponentInfo{com.example.united.reserver/com.example.united.reserver.Menu}: java.lang.RuntimeException: For ExpandableListView, use setAdapter(ExpandableListAdapter) instead of setAdapter(ListAdapter)
via Stack Overflow by NatJ
, 1 year ago
Unable to start activity ComponentInfo{com.checkpoint3/com.checkpoint3.Menu}: java.lang.RuntimeException: For ExpandableListView, use setAdapter(ExpandableListAdapter) instead of setAdapter(ListAdapter)
via Stack Overflow by Androider
, 1 year ago
Unable to start activity ComponentInfo{com.twitter.i_droidi.notah/com.twitter.i_droidi.notah.MainActivity}: java.lang.IllegalStateException: Cannot wait for changes inside a Looper thread. Use RealmChangeListeners instead.
via Stack Overflow by Tahir Islam
, 8 months ago
Unable to start activity ComponentInfo{com.mi47.test/com.mi47.test.MainActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
via GitHub by Splaktar
, 1 year ago
Unable to start activity ComponentInfo{org.gdg.frisbee.android.debug/org.gdg.frisbee.android.chapter.MainActivity}: java.lang.RuntimeException: Unable to bind views for org.gdg.frisbee.android.chapter.MainActivity
via Stack Overflow by Abhinav Tyagi
, 8 months ago
Unable to start activity ComponentInfo{com.example.androidthings.myproject/com.example.androidthings.myproject.MainActivity}: java.lang.RuntimeException: start failed.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.united.reserver/com.example.united.reserver.Menu}: java.lang.RuntimeException: For ExpandableListView, use setAdapter(ExpandableListAdapter) instead of setAdapter(ListAdapter)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)

Users with the same issue

16 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
10 times, 1 year ago
114 times, 1 year ago
6 times, 1 year ago

Write tip

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