Android Studio 无法识别 Mac/Linux 上的 OnePlus2 [英] Android Studio is not recognising OnePlus2 on Mac/Linux

查看:15
本文介绍了Android Studio 无法识别 Mac/Linux 上的 OnePlus2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Android Studio (1.3.2) 无法识别我的手机 OnePlus Two"

My Android Studio (1.3.2) is not recognising my phone "OnePlus Two"

我使用的是带有最新 Android SDK 的 Mac(OS x Yosemite 10.10.5).

I am having Mac (OS x Yosemite 10.10.5) with latest Android SDK.

更新 1:我的mac上安装的文件传输软件Android File Transfer"可以在我将手机连接到mac后立即识别手机.

Update 1: The file transfer software installed on my mac "Android File Transfer" is able to recognise the phone as soon as I connect phone to mac.

更新 2:在尝试通过终端查找所有连接的设备时,我什至没有通过执行命令 adb devices

Update 2: While trying to look for all connected device through terminal, I even don't see my device their by executing command adb devices

更新 3:我确实尝试过杀死 adb 并重新开始,但这也不起作用.

Update 3: I do tried killing adb and starting again but that too didn't work.

PS:我在开发者选项中启用了 USB 调试

PS: I have enabled USB debugging on the Developer Option

推荐答案

在 OnePlus2 论坛上得到了我的问题的答案.在这里分享相同的内容以帮助其他用户.

Got answer of my question on OnePlus2 Forum. Sharing the same here to help other users.

为了解决这个问题,我们需要在基于 Mac 或 Linux 的系统上运行一个脚本.

To solve this we need to run a script on Mac or Linux based system.

  1. 在您的 OP2 (OnePlus2) 上启用调试模式
  2. 连接到基于 Mac 或 Linux 的 PC
  3. 您会在取景器上看到一个名为One Plus Drivers"的驱动器
  4. 在那里你会看到一个名为Op2_adb_config_Linux_OSX.sh"的文件
  5. 将此文件复制到您的文档文件夹
  6. 打开终端并执行上述文件(sh Op2_adb_config_Linux_OSX.sh)
  7. 它将在您的系统上执行必要的步骤,然后您的 OP2 将被 Android Studio 识别.

这篇关于Android Studio 无法识别 Mac/Linux 上的 OnePlus2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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