使用HierarchyViewer加载活动时出错

时间:2012-05-08 19:54:49

标签: android android-layout

我尝试使用HierarchyViewer检查布局但不加载。 首先我尝试使用模拟器,因为它没有工作,所以我尝试使用ViewServer

使用模拟器静默失败但使用ViewServer我可以获得堆栈跟踪:

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)

关于可能发生的事情的任何想法?我不知道它是否相关但应用程序在ICS设备上运行并使用支持库与SherlockBar

0 个答案:

没有答案