Android-Android Studio 3.0找不到Android Device Monitor

原文:https://blog.csdn.net/yuanxiang01/article/details/80494842?utm_source=copy
 
为什么Android Studio 3.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.

译文:

  Android设备监视器是一个独立的工具,为几个Android应用调试和分析工具提供了一个UI。
  但是,大多数Android设备监视器组件已弃用,以支持Android Studio 3.0和更高版本中提供的更新工具。下表帮助您决定应该使用哪些开发人员工具。

 
图1.Android Developers关于Android Device Monitor的说明页
 
如何在Android Studio 3.0中使用Android Device Monitor?
虽然说被“弃用”,但是不代表不支持,我们还是可以通过其他方式来使用Android Device Monitor,具体使用方式如下:
在android-sdk/tools/目录的命令行中输入以下内容:
 
monitor1
如果你不知道你的Android SDK安装在哪个目录,可以在Android Studio的设置1中查看:
 
图2.Android Studio设置界面
进入CMD窗口2,cd到目标文件夹tools下,然后输入命令montior:
 
图3.cmd界面
接下来,我们就可以看到期待已久的Android Device Monitor界面了3:
 
图4.Android Device Monitor界面
Android Studio的设置界面快捷键:Ctrl+Alt+S ↩按Windows键+R进入CMD窗口 ↩进入Android Device Monitor的前提是已经打开了Android设备模拟器 ↩


Android studio3.0打开Device File Explore(文件管理器)的方法看到网上AS3.0新增加的查看手机文件的新功能,全部都是转载的,没有几个人心细的把如何打开的方法写下来,我找了好多地方才找到打开的方法,目前有如下两种种:方法一:点击 View > Tool Windows > Android Profiler (还可以点击工具栏的).
  • 方法二:
  • 直接在工具栏打开:

猜你喜欢

转载自www.cnblogs.com/hustcser/p/9782664.html