Android Studio 无法打开监视器(DDMS) [英] Android studio cannot open monitor (DDMS)

查看:73
本文介绍了Android Studio 无法打开监视器(DDMS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 android studio 中打开监视器 (ddms)收到以下错误:

I can't open the monitor (ddms) in android studio getting following error:

Java 运行时环境 (JRE) 或 Java 开发工具包 (JDK) 必须可用才能运行 Monitor.搜索以下位置后没有找到Java虚拟机:C:\Android-Studio\android-studio\sdk\tools\lib\monitor-x86\jre\bin\javaw.exe javaw.exe in your current PATH

A java Runtime Environment (JRE) or Java Development kit (JDK) must be available in order to run Monitor. No Java virtual machine was found after searching the following locations: C:\Android-Studio\android-studio\sdk\tools\lib\monitor-x86\jre\bin\javaw.exe javaw.exe in your current PATH

如果您有任何建议如何解决此问题,我们将不胜感激.谢谢

Would appreciate any suggestion how to fix this. thanks

推荐答案

您必须安装 jdk 或 jre 并在您的路径中.考虑到您正在运行 Windows,您必须转到环境变量并将其中之一的位置添加到路径中.那是假设您已经安装了其中之一.如果您不需要,则需要访问 oracle 网站并获取其中之一.

You must have your jdk or jre installed and in your path. Considering you are running windows you must go to your environment variables and add the location of one of them to the path. That is assuming you already have one of them installed. If you dont you need to go the oracle website and get one of them.

如果您已经安装了它,请转到您的系统设置,然后转到高级设置选项卡并单击底部的环境变量,在那里编辑 PATH 并添加您的 jre 或 jdk 的位置,这应该可以解决您的问题.

If you already have it installed go to your systems settings, then go to the advanced settings tab and click Environment variables at the bottom, there you edit the PATH and add the location of your jre or jdk, that should solver your problem.

这篇关于Android Studio 无法打开监视器(DDMS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆