相信很多更新了AndroidStudio3.0的小伙伴会发现无法在工具栏的的Tools->Android->device monitor,打开DeviceMonitor。
今天偶然看到
Google的官方文档:
However, most components of the Android Device Monitor are deprecated in favor of updated tools available in Android Studio 3.0 and higher.
大概意思就是:Android设备监视器的大多数组件都不支持在Android Studio 3.0和更高版本中使用更新的工具。
但是如果我们还是需要使用Android Device Monitor 该怎么办呢?
Start Android Device Monitor
To start the standalone Device Monitor application, enter the following on the command line in the android-sdk/tools/
directory
monitor
1.先找到AndroidStudio配置的SDK路径: ;
2.在SDK的android-sdk/tools/路径下【就是和配置ADB命令一样的路径】有个monitor.bat 的批处理文件;
3.鼠标连续点击两下monitor.bat这个批处理文件,在屏幕上会打开一个类似CMD的命令行中输入板,然后迅速自动关闭;
4.坐等1到3秒就会打开DDMS;