AndroidStudio启动DDMS失败的原因及解决方案

一、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启动失败

启动失败界面
打开指定的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位。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值