简体   繁体   English

Android设备监视器未在Mac中打开

[英]Android Device Monitor is not opening in Mac

I need to view and edit the shared preferences for my app. 我需要查看和编辑我的应用程序的共享首选项。 When I try to open the Android Device Monitor from my Android Studios (Tools > Android > Android Device Monitor) it gives the following error: 当我尝试从我的Android Studio(工具> Android> Android设备监视器)打开Android设备监视器时,出现以下错误:

在此处输入图片说明

When I open that log file, the given error is as follows: 当我打开该日志文件时,给定的错误如下:

https://drive.google.com/file/d/0B43t-lgy1BmXWjMtTjE3ZGI5TlE/view?usp=sharing https://drive.google.com/file/d/0B43t-lgy1BmXWjMtTjE3ZGI5TlE/view?usp=sharing

I found a similar post where the suggested fix was to update the Java SDK. 我在类似的帖子中找到了建议的修复程序来更新Java SDK。 However my Java SDK is already updated: 但是我的Java SDK已经更新:

在此处输入图片说明

I also thought maybe the device monitor was not installed, but it is. 我还认为可能没有安装设备监视器,但确实如此。 What is going on and how do I get my ADM back? 怎么回事,如何恢复我的ADM?

I had the same problem, that is Android Monitor could't find Java8. 我遇到了同样的问题,那就是Android Monitor无法找到Java8。 Installing with brew didn't help, but installing from Oracle dmg solved the issue. 使用brew安装并没有帮助,但是从Oracle dmg安装可以解决此问题。

I had the same problem, following solution worked for me I hope it also helps you, => uninstalling the JDK and then again downloaded the JDK 8 from Oracle. 我遇到了同样的问题,以下解决方案对我有用,希望它对您有所帮助,=>卸载JDK,然后再次从Oracle下载JDK 8。 install JDK 8 according to instruction. 根据说明安装JDK 8。 To make sure JDK is installed successfully write following command in terminal: /usr/libexec/java_home -v 1.7 为了确保成功安装JDK,请在终端中输入以下命令:/ usr / libexec / java_home -v 1.7

then set a path of JDK in Android Studio by doing the following Go to file -> project Structure -> JDK path. 然后通过执行以下转到文件->项目结构-> JDK路径来设置Android Studio中JDK的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM