【问题标题】:adb works in terminal but not in android-studioadb 在终端中有效,但在 android-studio 中无效
【发布时间】:2014-10-22 00:49:39
【问题描述】:

我有点卡住了,只需使用 android studio 和 adb 设置我的计算机(debian 64 位)。 我通过here下载了adb。

当我在终端中执行 adb 时,它可以工作,但在 android-studio 中,它找不到我的设备。 消息是: 等待设备。 未找到 USB 设备。

我需要对 android-studio 进行任何特定的调整以让它检测到我的设备吗? 我已经配置了我的 /etc/udev/rules.d/51-android.rules 将我的设备设置为调试并接受计算机连接(当我运行 adb shell 时,我可以成功访问设备)。

有什么想法吗? 谢谢。

【问题讨论】:

  • 请描述你如何“执行 adb”。
  • 通过执行,在shell中运行。例如:./adb shell
  • 查看您的计算机上是否有多个版本的 adb。

  • [这里][1] 我找到了一种解决方案。希望对您有所帮助。 [1]:stackoverflow.com/questions/29722685/…

标签: android shell android-studio debian adb


【解决方案1】:

尝试从命令行运行“adb kill-server”。之后,Android Studio 将自动启动一个新的 adb 服务器进程,该进程应该可以正确获取您的设备。

【讨论】:

  • 嘿,就这么简单!做到了!谢谢 !必须以root身份运行android studio。如果我以用户身份尝试,它似乎不起作用。
【解决方案2】:


here 是解决方案。希望它会帮助你。它帮助了我。


可以绕过在终端选项中启用旧模式的问题。


  • 从 Windows 启动命令提示符(win+r 然后键入 cmd)
  • 右击标题
  • 属性
  • 选项
  • 选中使用旧版控制台,然后单击确定
  • 重启 Android Studio

【讨论】:

    猜你喜欢
    • 2017-03-29
    • 2021-01-22
    • 1970-01-01
    • 2021-12-23
    • 2012-04-02
    • 2013-08-07
    • 2021-07-18
    • 2016-09-19
    • 2019-05-07
    相关资源
    最近更新 更多