gpt4 book ai didi

android - 亚行错误: device not found while device is connected

转载 作者:太空宇宙 更新时间:2023-11-04 03:56:11 30 4
gpt4 key购买 nike

我正在使用命令行编译和安装 Android 应用程序,当我尝试将其安装到设备上时,会发生以下情况:

$> adb devices  
List of devices attached
8c092420 device
$> adb install TestApp.apk
error: device not found
- waiting for device -

我使用adb -s 8c092420 install TestApp.apk没有问题。

我想为 Linux bash 创建一些别名(当我必须对设备执行某些操作而不复制设备 ID,因为我使用了其中多个设备 ID),您能给我一个建议吗?或者可能出了什么问题?

最佳答案

问题已解决。这是因为环境变量 ANDROID_SERIAL 设置为旧设备。如果您在 linux/unix 上也遇到这种情况,请使用下一个命令。

unset ANDROID_SERIAL

关于android - 亚行错误: device not found while device is connected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24612060/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com