10

Good afternoon! Not so long ago I began to develop an application for android. The application creates a database and write data through want Android Device Monitor pull database and view, but when you start, emulator-5554 switches to offline mode. I tried to solve the problem using the adb kill-server and adb start-server, to no avail. Prompt how to solve the problem? Used to develop Android Studio 2.3.

10 Answers10

7

I have the same problem with u, but I found it work when I open the Android device monitor first. 1.close your emulator and android device monitor. 2.open your android device monitor. 3.open your emulator. Then it work.I don't know why.

Joseph Lin
  • 79
  • 2
5

I had the same problem, the easiest working way is First, Open Android Studio Go to Tools -> Android -> AVD Manager - Find the emulator which has problem -> Right click on it and click COLD BOOT NOW .

This will restart the android system, it's just like you hold the power button of your Smartphone and choose Restart.

Amir Gorji
  • 2,809
  • 1
  • 21
  • 26
  • I just did this and it helped me quite a bit after running around for a lil' while trying to fix this issue. – nguni52 Nov 23 '21 at 16:05
2

In my case I had to:

  1. in build.gradle change dependency to classpath 'com.android.tools.build:gradle:2.2.3'

  2. disconnect all connected devices

  3. adb kill-server
  4. adb start-server
  5. then start Android Device Monitor
  6. and at last launch emulator from Android Device Manager
Kamil
  • 21
  • 1
1
  • Open Android SDK
  • Select Tab SDK Tools
  • Update Android Emulator and package related
1

I just found the solution to this problem. It was just a small thing.

You need to turn on your developer settings Steps for this :

  1. Go to Settings
  2. Go to About Phone
  3. Touch on build number for seven times(after this you become a developer).
  4. Go back and go to developer options
  5. Turn on the USB Debugging.

That is it . Your emulator will be online.

Happy coding!!

rajat44
  • 4,941
  • 6
  • 29
  • 37
1

I am using emulator Nexus 5X got same issue. This emulator work perfectly before i rebooted my laptop. After my laptop rebooted this issue raise.

I solve this issue after enabling/activate Developer Options on the Emulator.

How to Activate Developer Options on Emulator

  1. go to Settings
  2. select About Emulated Device
  3. Tap Build Number 7 times

Hope this could solve your problem or other readers. Thanks.

Cak Bud
  • 190
  • 2
  • 9
0

Try :

adb connect localhost:5555
0

You can start the Android Device Manager (ADM) by the command line script.

  1. Go to the Android SDK tools folder %userprofile%\AppData\Local\Android\sdk\tools
  2. Run monitor.bat

You can ignore its ddms error message when ADM starts. It does not affect to access the emulator.

I created a shortcut of monitor.bat on my Desktop. So I just double click the shortcut to start it when I need to run it.

Shangwu
  • 1,440
  • 12
  • 12
0

For those who use Charles Proxy on their emulator, you need to enable USB debugging in Developer Options.

This fixed my problem.

flamyoad
  • 519
  • 7
  • 15
-1

There is a really simple solution to this problem:

run the command:

adb reconnect

this brings back the device online, you can check by running adb devices