Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/217.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 使用adb connect将设备列为未经授权_Android_Android Emulator_Adb - Fatal编程技术网

Android 使用adb connect将设备列为未经授权

Android 使用adb connect将设备列为未经授权,android,android-emulator,adb,Android,Android Emulator,Adb,在远程机器上,我启动模拟器 emulator -avd emu1 -ports 5555,5554 在本地机器上,我连接到emulator adb connect 10.9.1.6:5555 然后我使用adb设备列出设备,但设备未经授权 List of devices attached 10.9.1.6:5555 offline 此外,当我连接时,在设备屏幕上没有请求调试权限确认的对话框 我曾尝试过取消调试烫发,但没有结果。我试过几种型号的设备。我用的是安卓Q 也许我应该尝试一个更低的

在远程机器上,我启动模拟器

emulator -avd emu1 -ports 5555,5554
在本地机器上,我连接到emulator

adb connect 10.9.1.6:5555
然后我使用adb设备列出设备,但设备未经授权

List of devices attached
10.9.1.6:5555   offline
此外,当我连接时,在设备屏幕上没有请求调试权限确认的对话框

我曾尝试过取消调试烫发,但没有结果。我试过几种型号的设备。我用的是安卓Q

也许我应该尝试一个更低的API,但我想使用安卓Q


我还想尝试使用根目录(非生产)设备。

确保您的USB调试已从开发者选项打开。

我启动了一个带有架构映像的emu,该架构映像没有Google play,该设备在使用adb connect连接后被列为授权设备,所以我想我已经解决了我的问题:不要使用生产仿真器。

我使用了,它是在数据传输上