Android hierarchyviewer不能使用的解决方法
2015-05-27 13:00
417 查看
有的时候打开模拟器,在DDMS的device中可以看到设备,并显示可以debug的状态,但是不显示进程的信息,并且hierarchyviewer也不可以用。
在控制台的打印信息如下:
- hierarchyviewer]Unable to get view server version from device emulator-5554
- hierarchyviewer]Unable to get view server protocol version from device emulator-5554
- ViewServerDevice]Unable to debug device: emulator-5554
- hierarchyviewer]Missing forwarded port for emulator-5554
- hierarchyviewer]Unable to get the focused window from device emulator-5554
解决办法:
重新启动adb server,运行如下命令:
在root权限下adb kill-server
adb start-server
重新打开hierarchyviewer,如下图,可以正常运行:
![](http://img.blog.csdn.net/20141028100117191?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWFjazQxNTg1ODc3NQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
附: 使用HierarchyViewer工具 点击打开链接
参考:http://developer.android.com/tools/help/hierarchy-viewer.html
原文地址:http://blog.csdn.net/mack415858775/article/details/40536157
在控制台的打印信息如下:
- hierarchyviewer]Unable to get view server version from device emulator-5554
- hierarchyviewer]Unable to get view server protocol version from device emulator-5554
- ViewServerDevice]Unable to debug device: emulator-5554
- hierarchyviewer]Missing forwarded port for emulator-5554
- hierarchyviewer]Unable to get the focused window from device emulator-5554
解决办法:
重新启动adb server,运行如下命令:
在root权限下adb kill-server
adb start-server
重新打开hierarchyviewer,如下图,可以正常运行:
附: 使用HierarchyViewer工具 点击打开链接
参考:http://developer.android.com/tools/help/hierarchy-viewer.html
原文地址:http://blog.csdn.net/mack415858775/article/details/40536157
相关文章推荐
- Android hierarchyviewer不能使用的解决方法
- Android hierarchyviewer不能使用的解决方法
- Android hierarchyviewer不能使用的解决方法
- android2.3平台上web页面(html5中使用frame)不能滑动的解决方法
- Android SDK Tools 升级到revision 17+后Admob不能使用问题的解决方法
- 使用Arcgis tools fix后Android不能生成Apk包异常解决方法
- hierarchyviewer偶然不能使用的解决方法
- android switch不能使用参数String,View等类的解决方法
- 解决使用了subList方法之后MPAndroidChart不能显示数据的Bug
- android6.0的SDK不能使用httpClient解决方法
- android2.3平台上web页面(html5中使用frame)不能滑动、不允许缩放的解决方法
- Android 百度地图打包不能使用 解决详细方法
- Android使用百度地图API,只显示灰色网格 解决方法
- 使用ScrollView属性fillViewport解决android布局不能撑满全屏的问题
- 使用ScrollView属性fillViewport解决android布局不能撑满全屏的问题
- 解决子级对象使用css float浮动 而父级div不能自适应高度,不能被父级内容撑开解决方法,父级div没有高度解决方法
- file_get_contents函数不能使用的解决方法
- android keytool 不是内部命令或外部命令在 (win7下不能用的解决方法)
- Android 使用android-support-multidex解决Dex超出方法数的限制问题,让你的应用不再爆棚
- Android Fragment嵌套使用存在的一些BUG以及解决方法