Android ADB emulator-5554 unauthorized

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 shell
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try '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 devices
List of devices attached
emulator-5556   device
emulator-5554   device
  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值