9

I want to profile my ui - it falls on stackoverflow for the onDraw method

I've been told its because my ui has too many layers

I wanted to do a view hierarchy dump to see how deep my layers are

but when i try to load the hierarchyviewer I get this error:

Error obtaining UI hierarchy
Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!

how do i fix it?

Lena Bru
  • 13,521
  • 11
  • 61
  • 126
  • I think it is a known bug, but they do not have a solution for that. maybe you could provide more information to the issue it it can be fixed soon. https://code.google.com/p/android/issues/detail?id=57024 – L.Butz Nov 03 '13 at 08:02
  • 2
    Is there anything i can do to analyze my ui without this tool ? – Lena Bru Nov 03 '13 at 08:54

2 Answers2

0

If we can't fix this problem yet since it's a known problem,

we can try the monkey talk.

It provides a view hierarchy with its own mechanism.

19 Lee
  • 108
  • 6
0

You can also use the Genymotion emulator instead until this is fixed. the uiautomatorviewer has no issues with it from my experience.

Tim Boland
  • 1,872
  • 4
  • 23
  • 37