Android Studio未显示已连接的物理设备 [英] Android Studio not showing connected physical device

查看:711
本文介绍了Android Studio未显示已连接的物理设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在撰写本文时,我正在使用最新版本的Android Studio(2.1.2)。我遇到的问题是Android Studio使用的ADB实例似乎无法找到我的Galaxy Core Prime设备(SM-G361F,Android原始版本-5.1.1)。它可以很好地连接到仿真器。



我尝试过的操作(大多数多次):




  • 启用/禁用开发人员选项

  • 启用/禁用USB调试

  • 撤销USB调试授权

  • 将MTP更改为PTP,反之亦然(我的设备不允许取消选择这两个选项,必须选择一个选项)

  • 重新安装驱动程序

  • 打开和关闭手机和PC的电源

  • 使用不同的USB端口安装三星的Smart Switch软件

  • $ b
  • 尝试不同的Android Studio版本(x86和x64以及最新的各自JDK)



在Android Studio中:





我已经安装了官方三星的USB dri



然后,我还尝试从



它显然已经成功找到了该设备。

我的设备也很礼貌提示我允许PC连接到它使用生成的RSA密钥,这在Android Studio中是从未发生过的。



我唯一没有尝试过的就是安装三星的Kies软件。

不知道这是什么问题。
也许我应该放弃,而是使用仿真器,但是如果您问我,不能在实际的物理设备上进行调试是非常可耻的。



请先谢谢您。

解决方案

Android通常不支持所有手机进行调试连接。我有一个三星s6,对我来说很有效。我不知道Core Prime。但是,在大多数情况下(以我的经验):




  • 电话不支持连接

  • 您未按照android SDK的要求安装所有必需的文件,因此可能未获得支持更多手机的最新更新

  • 不支持该操作系统-主要是由于三星和许多其他品牌坚持拥有自己的更新。有时,他们有意或无意中忘记了为开发人员支持USB调试。
    我的平板电脑在到达Android 6之前不支持USB调试连接。

  • 电缆是仅可充电的电缆(是的,由于某些原因存在)。尝试使用其他电缆

  • 您没有必要的驱动程序。确保已安装



出于某些原因,您的手机型号不支持连接可能是偶然的情况很难说。获得适当帮助的唯一方法是与三星客户支持联系,但是以我的经验,这只是浪费时间。他们不知道自己的产品。如果尝试使用其他设备,则可能会起作用。


I am using the latest version of Android Studio(2.1.2) at the time of writing this post . The problem that I am experiencing is that the ADB instance used by Android Studio doesn't seem to be able to find my Galaxy Core Prime device (SM-G361F, stock Android version - 5.1.1). It can connect to an emulator just fine.

What I had tried (most of these multiple times):

  • enabling/disabling developer options
  • enabling/disabling USB debugging
  • revoking USB debugging authorization
  • changing MTP to PTP and vice versa (my device doesn't allow deselecting both options, one must be chosen)
  • reinstalling the drivers
  • powering on and off both the phone and the PC
  • installing Samsung's Smart Switch software
  • using different USB ports
  • trying out different Android Studio versions (x86 and x64 with the latest respective JDKs)

This is what it looks like in Android Studio:

I had installed the official Samsung's USB drivers from here.
This is what the Device Manager is showing (Windows 7 64-bit SP1):

Afterwards, I've also tried installing the Universal USB drivers from here.
This is what firing up its installation of ADB looks like:

It has obviously successfully found the device.
My device also politely prompted me to allow the PC to connect to it using a generated RSA key which never happened with Android Studio.

The only thing I've not tried is installing Samsung's Kies software.
I really don't know what is the problem here. Maybe I should just give up and instead use the emulator but it is a damn shame not to be able to debug on an actual physical device, if you ask me.

Thank you in advance.

解决方案

Android in general does not support all phones for a debug connection. I have a samsung s6 and for me that works. I don't know about the Core Prime though. However, in most cases(in my experience):

  • The phone does not support the connection
  • You did not install all the required files in terms of the android SDK you might have not gotten the latest update that supports more phones
  • The OS is not supported - Mainly caused because Samsung and a lot of other brands insist on having their own updates. And some times they - on purpose or by accident - forget to support USB debugging for developers. My tablet did not support the USB debugging connection untill it reached android 6.
  • The cable is a charge-only cable (yes, those exist for some reason). Try with a different cable
  • You don't have the necessary drivers. Make sure they're installed

It might be circumstantial that your phone model does not support the connection for some reason, but it is really hard to tell. The only way to get proper help is to contact Samsung customer support, but in my experience it is just a waste of time. They don't know their own products. If you try with another device it might work.

这篇关于Android Studio未显示已连接的物理设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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