hierarchy is not working for my device

前端 未结 6 1261
萌比男神i
萌比男神i 2020-12-07 10:00

when I run hierarchy in terminal. it can show the interface of it, but can not connect to my device.And it can connect to virtual emulator. It remind me in terminal like tha

6条回答
  •  天涯浪人
    2020-12-07 10:43

    For anyone working with Android 4.1 or later: you can get Hierarchy Viewer working by setting the environment variable ANDROID_HVPROTO to ddm.

    Mac OSX/Android Studio users, remember to start hierarchy viewer from command line so it will pick up the environment variable. If you installed it with Android Studio, you can find it in /Users//Library/Android/sdk/tools

    https://developer.android.com/tools/performance/hierarchy-viewer/setup.html

提交回复
热议问题