java.lang.RuntimeException: Multiple data elements matched: is an instance of android.database.Cursor. At this point, I don't even think it's getting to the onChildView() match. Before I continue further, is this even the right way to approach this? Should UI automation even be touching Cursors? Thanks in advance! Here is the call stack of the error: ...

Google Groups | Marcelo Hernandez | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to click ListView item when getItemAtPosition(int) returns ContentResolver$CursorWrapperInner?

    Google Groups | 3 years ago | Marcelo Hernandez
    java.lang.RuntimeException: Multiple data elements matched: is an instance of android.database.Cursor. At this point, I don't even think it's getting to the onChildView() match. Before I continue further, is this even the right way to approach this? Should UI automation even be touching Cursors? Thanks in advance! Here is the call stack of the error: ...
  2. 0

    Can't click on item in a spinner with onData or onView (RuntimeException)

    Google Groups | 2 years ago | chris.r...@gmail.com
    java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not be requesting layout for over 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Otherwise, something is seriously wrong. Selected Root: Root{application-window-token=android.view.ViewRootImpl$W@41e79438, window-token=android.view.ViewRootImpl$W@41e79438, has-window-focus=false, layout-params-type=1, layout-params-string=WM.LayoutParams{(0,0)(fillxfill) ty=1 fl=#1810100 pfl=0x8 wanim=0x103028f}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=480, height=800, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}} . All Roots: Root{application-window-token=android.view.ViewRootImpl$W@41eb0790, window-token=android.view.ViewRootImpl$W@41fb9568, has-window-focus=true, layout-params-type=1000, layout-params-string=WM.LayoutParams{(6,195)(180x461) gr=#10000033 sim=#1 ty=1000 fl=#1860200 fmt=-3 wanim=0x10301e3}, decor-view-string=PopupViewContainer{id=-1, visibility=VISIBLE, width=180, height=461, has-focus=true, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}} Root{application-window-token=android.view.ViewRootImpl$W@41eb0790, window-token=android.view.ViewRootImpl$W@41eb0790, has-window-focus=false, layout-params-type=2, layout-params-string=WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#20 ty=2 fl=#1800002 pfl=0x8 fmt=-3 wanim=0x1030290}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=480, height=696, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}} Root{application-window-token=android.view.ViewRootImpl$W@41e79438, window-token=android.view.ViewRootImpl$W@41e79438, has-window-focus=false, layout-params-type=1, layout-params-string=WM.LayoutParams{(0,0)(fillxfill) ty=1 fl=#1810100 pfl=0x8 wanim=0x103028f}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=480, height=800, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}} Root{application-window-token=android.view.ViewRootImpl$W@41e2ffe8, window-token=android.view.ViewRootImpl$W@41e2ffe8, has-window-focus=false, layout-params-type=1, layout-params-string=WM.LayoutParams{(0,0)(fillxfill) ty=1 fl=#1810100 pfl=0x8 wanim=0x103028f}, decor-view-string=DecorView{id=-1, visibility=INVISIBLE, width=480, height=800, has-focus=false, has-focusable=false, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=true, is-selected=false, root-is-layout-requested=true, has-input-connection=false, x=0.0, y=0.0, child-count=1}}
  3. 0

    Use onData to locate an element in an overflow menu

    Google Groups | 3 years ago | philip...@gmail.com
    com.google.android.apps.common.testing.ui.espresso.PerformException: Error performing 'load adapter data' on view 'is assignable from class: class android.widget.AdapterView'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Testing an ExpandableList view backed by a SimpleExpandableListAdapter

    Google Groups | 4 years ago | aobri...@gmail.com
    com.google.android.apps.common.testing.ui.espresso.PerformException: Error performing 'load adapter data' on view 'is assignable from class: class android.widget.AdapterView'.
  6. 0

    How can I specify a non default root matcher?

    Google Groups | 4 years ago | Mario Böhmer
    java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not be requesting layout for over 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Otherwise, something is seriously wrong. Selected Root: Root{application-window-token=android.view.ViewRootImpl$W@b33a3170, window-token=android.view.ViewRootImpl$W@b341b0b8, has-window-focus=false, layout-params-type=1000, layout-params-string=WM.LayoutParams{(40,289)(688x115) gr=#10800033 sim=#10 ty=1000 fl=#1860208 fmt=-3 wanim=0x10301e7}, decor-view-string=PopupViewContainer{id=-1, visibility=VISIBLE, width=688, height=115, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}} . All Roots: Root{application-window-token=android.view.ViewRootImpl$W@b33a3170, window-token=android.view.ViewRootImpl$W@b341b0b8, has-window-focus=false, layout-params-type=1000, layout-params-string=WM.LayoutParams{(40,289)(688x115) gr=#10800033 sim=#10 ty=1000 fl=#1860208 fmt=-3 wanim=0x10301e7}, decor-view-string=PopupViewContainer{id=-1, visibility=VISIBLE, width=688, height=115, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}} Root{application-window-token=android.view.ViewRootImpl$W@b33a3170, window-token=android.view.ViewRootImpl$W@b33a3170, has-window-focus=true, layout-params-type=1, layout-params-string=WM.LayoutParams{(0,0)(fillxfill) sim=#2 ty=1 fl=#1810100 pfl=0x8 wanim=0x1030295}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=768, height=1184, has-focus=true, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}}

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Multiple data elements matched: is an instance of android.database.Cursor. Elements: [Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 4, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 5, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 6, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 7, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 8, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 9, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 10, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 11, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 12, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 13, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 14, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 15, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 16, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 17, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 18, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 19, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 20, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 21, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 22, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 23, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 24, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 25, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 26, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 27, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 28, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 29, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 30, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 31, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 32, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 33, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 34, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 35, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 36, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 37, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 38, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 39, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 40, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 41, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 42, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 43, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 44, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 45, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 46, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 47, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 48, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 49, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 50, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 51, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 52, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 53, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 54, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 55, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 56, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 57, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 58, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 59, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 60, Data: android.content.ContentResolver$CursorWrapperInner@b158b268 (class: class android.content.ContentResolver$CursorWrapperInner) token: 61]

      at com.google.android.apps.common.testing.ui.espresso.action.AdapterDataLoaderAction.perform()
    2. com.google.android
      ViewInteraction$1.run
      1. com.google.android.apps.common.testing.ui.espresso.action.AdapterDataLoaderAction.perform(AdapterDataLoaderAction.java:108)
      2. com.google.android.apps.common.testing.ui.espresso.ViewInteraction$1.run(ViewInteraction.java:119)
      2 frames
    3. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:234)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:730)
      2. android.os.Handler.dispatchMessage(Handler.java:92)
      3. android.os.Looper.loop(Looper.java:137)
      4. android.app.ActivityThread.main(ActivityThread.java:5103)
      4 frames
    5. Java RT
      Method.invokeNative
      1. java.lang.reflect.Method.invokeNative(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame