本文主要是介绍Android Studio3.0以上版本找不到Android Device Monitor,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
自Android Studio 3.0开始弃用Android Device Monitor,Android Developers官网上的原话是:
Android Device Monitor is a standalone tool that provides a UI for several Android app debugging and analysis tools.
However, most components of the Android Device Monitor are deprecated in favor of updated tools available in Android Studio 3.0 and higher. The table below helps you decide which developer tools you should use.
但是,虽然说被“弃用”,我们仍然可以继续以其他方式使用,使用方法:
1、Ctrl+Shift+S快捷键,打开Settings中SDK配置目录,拷贝SDK location(我的为:C:\Users\dell\AppData\Local\Android\Sdk)
2、在Android Studio下Terminal面板输入:cd C:\Users\dell\AppData\Local\Android\Sdk并回车
3、cd tools回车
4、monitor回车
等待几秒后,Android Device Monitor就打开了。
如果想查看某个app页面的View层级结构,首先在手机上打开该页面,然后点击“”Dump View hHerarchy for UI Automator”按钮。如果是自己开发的debug app也可以使用Tools-Layout Inspector工具。
这篇关于Android Studio3.0以上版本找不到Android Device Monitor的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!