Android Device monitor disabled

2020-07-18 06:22发布

问题:

I'm just getting started with Android development and was setting up Android Studio on my mac. (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. 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.

回答1:

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. (On Windows you can just double click the file or run it from a cmd shell.)



回答2:

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

1.Tools->Android->Enable ADB Integration

2.If you open DDMS, CLOSE it .

If these didn't work too, check the official file. https://developer.android.com/studio/profile/am-basics.html