Error loading using HierarchyViewer

I tried to check the layout using the HierarchyViewer, but it does not load. Firstly, I tried with the emulator and since it did not work, I tried using ViewServer

With the emulator, it failed, but with ViewServer I can get the stack:

W/dalvikvm(459): Unable to match class for part: 'Landroid/view/accessibility/AccessibilityNodeInfo;)V' W/View(459): Problem dumping the view: W/View(459): java.lang.NoSuchMethodException W/View(459): at java.lang.Class.getDeclaredMethods(Native Method) W/View(459): at java.lang.ClassCache.getDeclaredMethods(ClassCache.java:140) W/View(459): at java.lang.Class.getDeclaredMethods(Class.java:757) W/View(459): at android.view.ViewDebug.getExportedPropertyMethods(ViewDebug.java:1331) W/View(459): at android.view.ViewDebug.exportMethods(ViewDebug.java:1372) W/View(459): at android.view.ViewDebug.dumpViewProperties(ViewDebug.java:1364) W/View(459): at android.view.ViewDebug.dumpViewProperties(ViewDebug.java:1354) W/View(459): at android.view.ViewDebug.dumpViewWithProperties(ViewDebug.java:1270) W/View(459): at android.view.ViewDebug.dumpViewHierarchyWithProperties(ViewDebug.java:1244) W/View(459): at android.view.ViewDebug.dumpViewHierarchyWithProperties(ViewDebug.java:1252) W/View(459): at android.view.ViewDebug.dumpViewHierarchyWithProperties(ViewDebug.java:1252) W/View(459): at android.view.ViewDebug.dumpViewHierarchyWithProperties(ViewDebug.java:1252) W/View(459): at android.view.ViewDebug.dumpViewHierarchyWithProperties(ViewDebug.java:1252) W/View(459): at android.view.ViewDebug.dumpViewHierarchyWithProperties(ViewDebug.java:1252) W/View(459): at android.view.ViewDebug.dumpViewHierarchyWithProperties(ViewDebug.java:1252) W/View(459): at android.view.ViewDebug.dumpViewHierarchyWithProperties(ViewDebug.java:1252) W/View(459): at android.view.ViewDebug.dump(ViewDebug.java:1204) W/View(459): at android.view.ViewDebug.dispatchCommand(ViewDebug.java:863) W/View(459): at android.view.ViewRoot$W.executeCommand(ViewRoot.java:3070) W/View(459): at android.view.IWindow$Stub.onTransact(IWindow.java:65) W/View(459): at android.os.Binder.execTransact(Binder.java:320) W/View(459): at dalvik.system.NativeStart.run(Native Method) 

Any ideas on what could happen? I don't know if this matters, but the application runs on the ICS device and uses the support library using SherlockBar

+4
source share

Source: https://habr.com/ru/post/1411391/


All Articles