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
I had the same problem and finally found an answer at http://developer.android.com/tools/performance/hierarchy-viewer/setup.html. There is an environmental variable that needs to be set in your development environment before the ViewServer will connect.