gpt4 book ai didi

安卓工作室 : Installation failed due to: 'device ' xxxxxxxx' not found'

转载 作者:行者123 更新时间:2023-12-03 13:42:28 28 4
gpt4 key购买 nike

我正在努力解决将 Android Studio 连接到我的 Google Pixel 2 的问题。

当我将手机插入笔记本电脑时,Android Studio 现在可以识别物理设备并在设备下拉列表中显示“Google Pixel 2”以运行应用程序。当我去运行该应用程序时,它编译没有错误,但是当它尝试在我的手机上安装该应用程序时,我的手机和 AS 之间的连接丢失(该设备不再列在下拉列表中)并且此错误消息显示在运行对话框:

06/12 17:08:35: Launching 'app' on Google Pixel 2.
Installation did not succeed.
The application could not be installed.

List of apks:
[0] '/home/kirk/Apps/xxxx/android/app/build/outputs/apk/debug/app-debug.apk'
Installation failed due to: 'device 'xxxxxxxx' not found'
Retry

点击 Retry链接只是导致它在模拟器中启动。

我尝试断开并重新连接设备,撤销 USB 调试授权,然后重新信任我的计算机,以及关闭并重新打开 Android Studio。

有任何想法吗?

最佳答案

Android Studio–>Preferences–>Build,Execution,Deployment–>Debugger–>“Use libusb backend”,选false–>Apply–>Ok

关于安卓工作室 : Installation failed due to: 'device ' xxxxxxxx' not found',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62354176/

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