Android hierarchyviewer unable to load window data

后端 未结 5 1280
时光取名叫无心
时光取名叫无心 2020-12-17 07:43

I\'m trying to use the hierarchyviewer tool to see the layout of my Android app.

I can run hierarchyviewer, and see the emulator running. I click on

相关标签:
5条回答
  • 2020-12-17 08:35

    Problem is it only support Only Gingerbread and higher. https://groups.google.com/group/android-developers/tree/browse_frm/thread/b8aac9fe39ec1941

    0 讨论(0)
  • 2020-12-17 08:35

    For me, adding the INTERNET uses-permission to the manifest solved the problem:

    <uses-permission android:name="android.permission.INTERNET"/>
    
    0 讨论(0)
  • 2020-12-17 08:40

    I found an application's view hierarchy does not load when the the app is under debug. Have you tried dismissing the debugger and just starting the app from the launch icon?

    0 讨论(0)
  • 2020-12-17 08:44

    For mac add ~/work/android-sdk/tools$ ANDROID_HVPROTO=ddm monitor

    or steps outlined here: http://developer.android.com/tools/performance/hierarchy-viewer/setup.html

    0 讨论(0)
  • 2020-12-17 08:47

    In my case it was a carriage return character (U+000D) in one of my TextViews which prevented the hierarchyviewer from loading the window data.

    These thinks do not help in this case:

    • cleaning the project
    • deploying the app not in debug-mode
    • closing eclipse
    • running adb kill-server && adb start-server
    • trying other views like com.android.settings.Settings or com.android.development.Development (which worked fine)
    0 讨论(0)
提交回复
热议问题