java.lang.ClassCastException

mono.android.runtime.JavaObject cannot be cast to java.util.Map

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19029

  • via Xamarin Bugzilla by roy.solberg, 1 year ago
    mono.android.runtime.JavaObject cannot be cast to java.util.Map
  • mono.android.runtime.JavaObject cannot be cast to java.util.Map
  • via xamarin.com by Unknown author, 1 year ago
    mono.android.runtime.JavaObject cannot be cast to java.util.Map
  • Stack trace

    • java.lang.ClassCastException: mono.android.runtime.JavaObject cannot be cast to java.util.Map at android.widget.SimpleExpandableListAdapter.getGroupView(SimpleExpandableListAdapter.java:278) at android.widget.ExpandableListConnector.getView(ExpandableListConnector.java:450) at android.widget.AbsListView.obtainView(AbsListView.java:2627) at android.widget.ListView.measureHeightOfChildren(ListView.java:1259) at android.widget.ListView.onMeasure(ListView.java:1171) at android.view.View.measure(View.java:16848) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5245) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410) at android.widget.LinearLayout.measureVertical(LinearLayout.java:695) at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)

    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’re the first here who have seen this exception.