Error: device offline

前端 未结 15 1168
醉梦人生
醉梦人生 2020-12-13 09:36

The emulator is running. But when I write adb shell in my shell I get:

error:device offline

What is the reason for

15条回答
  •  长情又很酷
    2020-12-13 09:54

    Method 1 :

    run this commands in your linux terminal

    sudo adb kill-server
    sudo adb devices
    

    run this commands in your CMD

    adb kill-server
    adb devices
    

    "adb devices" result must show any device with id. If instead of id you are getting off-line means you need to give permission in your tab. Once you enable USB Debugging in android and connect the device for the first time you will get an alert dialog for giving permission. If you are not getting any pop-up then click on Revoke USB Permission in Developer option the try once.

    Method 2:

    Change the device connected mode from Media to Camera, sometimes this helped me.

    Method 3 :

    Update the adb as well as device drivers.

提交回复
热议问题