简体   繁体   English

Android设备监视器已禁用

[英]Android Device monitor disabled

I'm just getting started with Android development and was setting up Android Studio on my mac. 我刚刚开始使用Android开发,并且正在我的Mac上安装Android Studio (Following the instructions here ) (按照这里的说明)

When trying to run a simple hello world application and trying to learn my way around the IDE, I noticed the "Android Device monitor" disabled. 当试图运行一个简单的hello world应用程序并尝试学习我的IDE时,我注意到“Android设备监视器”被禁用。 Any ideas how I can fix this? 我有什么想法可以解决这个问题吗? This should be important when debugging apps hence the question. 这在调试应用程序时应该是重要的问题。

在此输入图像描述

I'm not sure what other info might be important for this question. 我不确定这个问题可能对其他信息有什么重要意义。 I did make a few changes in the SDK manager, but they were just installing more components on top of what was already installed. 我确实在SDK管理器中做了一些更改,但他们只是在已经安装的东西上安装了更多组件。

Once you open a valid project, the buttons become enabled. 打开有效项目后,按钮将变为启用状态。

Note that, even if the option is disabled, you can still bring up the Device Monitor by running the monitor.bat file in the tools directory of the Android SDK. 请注意,即使禁用该选项,您仍然可以通过运行Android SDK的tools目录中的monitor.bat文件来启动设备监视器。 (On Windows you can just double click the file or run it from a cmd shell.) (在Windows上,您只需双击该文件或从cmd shell运行它。)

This problem occurs to me today. 今天我遇到这个问题。 And I just click the button on the pic. 我只需点击图片上的按钮。 Problem solved. 问题解决了。

在此输入图像描述

and If this didn't work ,you can check this list in your Android Studio 如果这不起作用,您可以在Android Studio中查看此列表

1.Tools->Android->Enable ADB Integration 1.Tools-> Android->启用ADB集成

2.If you open DDMS, CLOSE it . 2.如果您打开DDMS,请关闭它。

If these didn't work too, check the official file. 如果这些也不起作用,请查看官方文件。 https://developer.android.com/studio/profile/am-basics.html https://developer.android.com/studio/profile/am-basics.html

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

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