android-studio - Android Studio无法在Mac/Linux上识别OnePlus2

标签 android-studio adb oneplusone

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

我使用的是Mac(OS x Yosemite 10.10.5)和最新的Android SDK。

更新1:
将手机连接到Mac后,安装在我的Mac“Android File Transfer”上的文件传输软件便能够识别手机。

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

更新3:
我确实尝试杀死adb并重新开始,但这也没有用。

PS:我已在Developer Option上启用USB调试

最佳答案

在OnePlus2论坛上得到了我的问题的答案。在此处共享相同内容以帮助其他用户。

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

  • 在OP2(OnePlus2)上启用 Debug模式
  • 连接到基于Mac或Linux的PC
  • 您将在查找器中看到名为“One Plus Drivers”的驱动器。
  • 在那里您将看到一个名为“Op2_adb_config_Linux_OSX.sh”的文件。
  • 将此文件复制到您的文档文件夹
  • 打开终端并执行上述文件(sh Op2_adb_config_Linux_OSX.sh)
  • 它将在您的系统上执行必要的步骤,然后您的OP2将被Android Studio识别。
  • 关于android-studio - Android Studio无法在Mac/Linux上识别OnePlus2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32617974/

    相关文章:

    android - 从 adb 访问 Tty 驱动程序 android?

    android - 使用 OnePlus One 上的服务拍照 - 使用 WindowManager hack

    android-studio - 我如何格式化(粗体)文本中的单词?

    ffmpeg - 无法识别的选项 'sync' 。拆分参数列表时出错 : Option not found

    android - 通过android studio上传视频到Youtube

    android - 如何使用 adb grant 或 adb revoke?

    android - 来自 XML 首选项的 UnknownFormatConversionException(仅在 Oneplus One 上)

    Android ADB 设备未经授权

    java - findViewById 时不需要强制转换?

    android-studio - 未找到 flutter 命令