一、Google在AS 3.0以后对Google对 DDMS的描述


Android Device Monitor
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.


DDMS是一个独立的工具,为多个App调试和分析提供一个用户界面。但是,AS将在3.0以后对DDMS的大多数组件弃用
虽然,在AS 菜单栏中的Tools–>Android–>Device Monitor 功能删除了,但是Google还保留了另一个打开DDMS的路径。

二、打开Android Device Monitor的新方式

Google文档中打开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/sdk/tools/路径下的monitor.bat 的批处理文件;
3.双击monitor.bat这个批处理文件,会快闪一个类似CMD的命令行中输入板,稍等1到3秒就会打开DDMS。

三、DDMS启动失败

AndroidStudio启动DDMS失败的原因及解决方案
打开指定的log文件:

java.version=12.0.1
java.vendor=Oracle Corporation
!MESSAGE Bundle reference:file:org.apache.ant_1.8.3.v201301120609/@4 not found.

这个Log.txt文件,首行就是出现了当前jdk版本12.0.1。而DDMS的monitor,目前只支持到jdk8

四、解决方案

手动删除并重新下载JDK8,配置好环境变量。
注意:JDK和AS最好一致,要用64位都用64位。

相关文章:

  • 2021-10-03
  • 2021-10-19
  • 2021-12-25
  • 2021-10-09
  • 2021-09-25
  • 2021-11-06
  • 2021-09-28
  • 2021-11-14
猜你喜欢
  • 2021-11-27
  • 2021-09-14
  • 2021-10-09
  • 2021-12-15
  • 2022-01-02
  • 2021-11-06
  • 2021-09-29
  • 2021-11-19
相关资源
相似解决方案