Android模拟器实例未显示“允许USB调试",确认身份验证 [英] Android Emulator instance does not show "Allow USB Debugging" confirmation to authenticate

查看:591
本文介绍了Android模拟器实例未显示“允许USB调试",确认身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Android Studio在Android模拟器中运行我的移动应用程序.当我运行该应用程序时,它会提示我选择仿真器实例:

I'm trying to run my mobile app in the Android Emulator from Android Studio. When I run the app, it prompts me to select the emulator instance:

当我选择一个仿真器实例时,将开始构建应用程序,并且所选仿真器将启动.

When I select an emulator instance the build of the application starts and the emulator selected boots up.

构建完成后,Android Studio告诉我其正在等待目标设备上线",以便可以通过桥接器进行身份验证.

After the build completes, Android Studio tells me that its "waiting for the target device to come online" so that it can authenticate with the bridge.

等待一段时间后,我没有收到带有RSA指纹的允许USB调试"确认,因此我启用了开发人员模式并进入设置.

After waiting for some time, I do not get an "Allow USB Debugging" confirmation with an RSA thumbprint so I enable developer mode and go into the settings.

然后我尝试关闭"USB调试"设置然后再打开,然后在计算机上重新启动ADB服务,这导致ADB服务要求我对设备进行授权(我无法获得确认)

I then try and turn the setting "USB Debugging" off and then back on, I then restart the ADB service on my computer which results in the ADB service asking me to authorise the device (which I cant get the confirmation for)

我已经尝试了其他一些Android版本,但只有一个版本有效(API 27)(此版本在操作系统启动后立即向我显示了允许确认"窗口),我还检查了是否启用了开发人员选项在正常运行的操作系统(API 27)上,它们不是,表示操作系统映像是预先配置的,因为它们是仿真器,我不需要进行任何设置.

I have tried this with a few other Android versions, which of only one has worked (API 27) (This version showed me the allow confirmation window as soon as the OS booted) I also checked to see if developer options were enabled on the working OS (API 27), they were not which indicates that the OS images are pre-configured as they are emulators and I shouldn't need to touch any of the settings.

这感觉像是图像问题,因为其中一个图像(API 27)确实起作用.有谁知道为什么我无法获得其他API版本来提示我对远程目标进行身份验证?

This feels like its an image problem as one of the images (API 27) does work. Does anyone know why I cannot get the other API versions to give me a prompt to authenticate with the remote target?

需要注意的一件事: 在不起作用的版本上,我无法在Developer Options -> Select USB configuration下的设备上看到USB端口,但是在一个工作图像上,我可以看到已检测到USB端口并将其设置为正在充电".

One thing to note: On the versions that do not work, I cannot see a USB port on the device under Developer Options -> Select USB configuration but on the one working image I can see the USB port is detected and is set to "Charging".

API 27(有效的图片):

API 27 (The image that works):

API 25(无效的图像):

API 25 (An image that does not work):

这是我希望看到的提示,以便ADB服务可以与设备通信:

This is the prompt I expect to see so that the ADB service can communicate with the device:

推荐答案

我也面临着同样的问题,但是通过擦除数据并杀死并重新启动adb服务器来解决,但它也不再适用* 所以,我用

I was also facing same problem, but solved by wiping data and killing and restarting the adb server, but it also not worked for again* So , I used

Emulaor with no Play support

它只解决了我的问题. 希望对其他人有帮助

it only solved mine. Hope it will be helpful to anybody else

这篇关于Android模拟器实例未显示“允许USB调试",确认身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆