Android Studio-设备已连接但“离线” [英] Android Studio - Device is connected but 'offline'
问题描述
这是一个非常普遍的问题,但是没有一种解决方案适合我。第一次问问,如果我对约定的理解不对,则深表歉意。
This is quite a common question, but none of the solutions appear to work for me. First time asker, so apologies if I get the conventions wrong.
我正在尝试将Galaxy S5连接到运行Ubuntu 14.04的计算机,以便进行一些Android开发。我最近下载并安装了Android Studio和SDK,并且通过USB连接设备时可以检测到我的设备,但是该设备显示为未经授权或离线。我知道我应该期待RSA密钥提示,但是永远不会出现。
I am trying to connect my Galaxy S5 to my computer running Ubuntu 14.04 so I can do some android development. I have recently downloaded and installed Android Studio and the SDK and my device is detected when it's connected via USB but the device either appears as 'unauthorized' or 'offline'. I know I should be expecting the RSA key prompt but this never appears.
我已经尝试过:
- 已启用调试检查
- 运行adb杀毒服务器和adb设备
- 重新启动(设备,开发人员选项,计算机)
- 简单地拔出并重新插入USB电缆
- 检查我的adb版本(1.0.31)
- 尝试不同的USB端口
- 取消USB调试授权
- 在Android Studio中切换启用ADB集成
- 作为PTP设备和MTP设备连接
- Checking debugging was enabled
- Running adb kill-server and adb devices
- Restarting (the device, developer options, the machine)
- Simple unplugging and replugging the USB cable
- Checking my adb version (it is 1.0.31)
- Trying different USB ports
- Revoking USB debugging authorizations
- Toggling enabling ADB Integration from within Android Studio
- Connecting as PTP device and MTP device
我已经在运行fedora的另一台计算机上尝试过,并且工作正常,没有任何问题,提示立即出现。因此,我想这不是USB电缆出现故障。
I have tried it on a separate machine that runs fedora and this works fine with no issues, the promopt appears right away. Therefore I imagine it is not the USB cable that is faulty.
有什么想法吗?
推荐答案
尝试以下操作:
- 拔出并重新插入USB电缆。
- 如果仍然不起作用,请拔下USB电缆,禁用然后在设备设置中启用USB调试。
- 如果以上两种方法均失败,请重新启动设备。
- 如果重新启动设备也失败,也重新启动Android Studio。
- 如果重新启动Android Studio仍然失败,请尝试
adb kill-server
然后adb启动服务器
- Unplug and replug the USB cable.
- If it still doesn't work, unplug the USB cable, disable then enable USB debugging in the device settings.
- If the above two methods fail, reboot the device.
- If rebooting the device also fails, reboot Android Studio too.
- If reboot Android Studio still fail, try
adb kill-server
thenadb start-server
希望这会有所帮助。
这篇关于Android Studio-设备已连接但“离线”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!