Android ADB emulator-5554 unauthorized

来源:互联网 发布:ubuntu 双系统 主分区 编辑:程序博客网 时间:2024/06/04 19:14

In such a case, you can do all of the following in order to be assured that your emulator starts working again :

  1. Go to cmd and type “adb kill-server”
  2. Go to task manager and find “adb” in processes. If you find one, right click on it and click on end process tree.
  3. In eclipse, go to Window>Android Virtual Device Manager, click on the AVD you want to launch, click on start and uncheck “Launch From Snapshot” and then click on launch.

That’s it! It will take a while and it should resolve your problem.

如果上面还解决不了问题,那么,请看下面

  1. Simply “Wipe data” to fix this issue.
    描述

  2. If it doesn’t work, go to emulated device and enable developer options > enable usb debugging

https://stackoverflow.com/questions/3152681/android-emulator-5554-offline

如果还不行,最后解决方案在这里,PS:不过要符合这个错误提示

C:\Users\***>adb shellerror: device unauthorized.This adb server's $ADB_VENDOR_KEYS is not setTry 'adb kill-server' if that seems wrong.Otherwise check for a confirmation dialog on your device.

Android adb设备未经授权

  1. 删除.android/adbkey|adbkey.pub这两个文件(为保险起见,可以将两文件暂时移动出.android目录。.android目录默认在C盘下的当前用户目录下,如果配置了 ANDROID_SDK_HOME环境变量,那就是在这个变量值的目录下);
  2. 在AVD Manager中删除所有的avd,重新创建;
  3. 执行下命令adb devices,看看虚拟机的状态吧;
C:\Users\Administrator>adb devicesList of devices attachedemulator-5556   deviceemulator-5554   device
阅读全文
0 0