如何到达层次视图,同时运行连接到Android演播室设备上的应用 [英] How to get to Hierarchy View while running the app on my device connected to android studio

查看:667
本文介绍了如何到达层次视图,同时运行连接到Android演播室设备上的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好了,所以我试图去了解Android的工作室,并一直在玩几个项目。我的问题是我怎么能运行或调试应用程序,然后打开它的层次视图。如果我尝试打开Android设备监控,应用程序运行时,我得到的消息:继调试会话将被关闭:XX。我看到一个小的Andr​​oid DDMS窗口,在调试时或运行,在那里我看到的方法跟踪和分配跟踪选项打开,但什么层次的看法?


解决方案

我不知道的鬼,但也有从CLI启动它的指令,的这里


  <醇开始=4>
  
  • 从终端,从发射hierarchyviewer的&LT; SDK开发及GT; /工具/
      目录。

  •   

    您可以决定你的&LT; SDK开发及GT; 通过目录Android Studio中:
    文件 - >项目结构 - > SDK位置

    Okay, so I am trying to get to know the android studio and been playing with few projects. My question is how can I run or debug an app and then open the hierarchy view on it. If I try to open the Android Device Monitor, while the app is running, I get the message: "Following debug sessions will be closed:xx". I see a small Android DDMS window, which opens while debugging or running, where I see the options for Method tracing and allocation tracking, but what about Hierarchy view?

    解决方案

    I'm not sure about the gui, but there are instructions for launching it from the cli, here.

    1. From a terminal, launch hierarchyviewer from the <sdk>/tools/ directory.

    You can determine your <sdk> directory in Android Studio via: File -> Project Structure -> SDK Location

    这篇关于如何到达层次视图,同时运行连接到Android演播室设备上的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆