Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Missing Android Device Monitor and adb?

I am using Android Studio 3.0.1 and have not needed to use the Android Device Monitor or adb yet. In the video it looks like there should be a button next to the "AVC Manager" that opens the Android Device Monitor but it is not there for me.

I did find it in the menus under Tools -> Android -> Android Device Monitor, but when I try to launch it I get an error (in a popup that won't let me copy and paste) and it fails to start.

I did a google search for Android Device Monitor issues and found a result that suggested running Android Studio as Administrator. Tried that got the same error.

I then tracked down the executable in: C:\Users\xxx\AppData\Local\Android\Sdk\tools\lib\monitor-x86\monitor.exe

I can run it there, but it requires me to detach the debugger, and the data folder on the emulator won't open so I can't see if the files were created or not.

I then tried to use the adb shell and got this error:

C:\Windows\system32>adb
'adb' is not recognized as an internal or external command,
operable program or batch file.

I get the same using the terminal in Android Studio.
Are these things that I need to set up? If so how?

1 Answer

Still not sure what is going on with Android Device Monitor, but it sounds like Android Studio is moving away from it. https://developer.android.com/studio/profile/monitor.html

I just needed to setup an environment variable to get adb to work though. https://stackoverflow.com/questions/20564514