Intellij Idea 找不到我的 android 设备

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11487646/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 07:49:20  来源:igfitidea点击:

Intellij Idea does not find my android device

androiddebuggingintellij-ideaadb

提问by sprocket12

Hi I want to do some test app that uses sound recording, but it doesn't work in the emulator. I need to test it on my phone but every time I change the option to use USB, it never detects my Wildfire S ... which is connected and in USB debugging mode.

嗨,我想做一些使用录音的测试应用程序,但它在模拟器中不起作用。我需要在我的手机上测试它,但每次我更改选项以使用 USB 时,它永远不会检测到我的 Wildfire S ...已连接并处于 USB 调试模式。

It says "No USB Device Found".

它说“未找到 USB 设备”。

Using 11.1.2

使用 11.1.2

Any ideas?

有任何想法吗?

采纳答案by sprocket12

Problem was solved by installing HTC Sync it installed the correct driver and allowed me to detect the device.

通过安装 HTC Sync 解决了问题,它安装了正确的驱动程序并允许我检测到设备。

回答by Micha? Jarzyna

This works for me:

这对我有用:

  1. Unblock developers settings in your phone (link)
  2. Ensure your Adb USB driver is installed (Windows 8 and 8.1 solution):

    • Connect your device via usb
    • Right Click on 'This PC' (My Computer) -> Manage -> Device Manager -> Other devices
    • If usb driver is not installed, in 'Other dvices' will appear your phone
    • Download ADP USB driver for your phone (common drivers list)
    • Right click on your device -> Update Driver Software -> Browse your computer for downloaded driver directory
    • Click Next and install drivers.
    • You can receive error like this:

      A problem was encountered while attempting to add the driver to the store.

    • Handle error with unblocking unsigned drivers installation
  3. IDE is still not recognize your phone

    • try run command (set PATH if command is not recognized) :
      adb devices

    • with result like this:

      adb server is out of date. killing... daemon started successfully `

    • IDE should now recognize your device

  1. 解锁手机中的开发者设置(链接
  2. 确保安装了 Adb USB 驱动程序(Windows 8 和 8.1 解决方案):

    • 通过 USB 连接您的设备
    • 右键单击“此PC”(我的电脑)-> 管理-> 设备管理器-> 其他设备
    • 如果没有安装usb驱动,在“Other dvices”中会出现你的手机
    • 为您的手机下载 ADP USB 驱动程序(常用驱动程序列表
    • 右键单击您的设备 -> 更新驱动程序软件 -> 浏览您的计算机以获取下载的驱动程序目录
    • 单击下一步并安装驱动程序。
    • 您可能会收到这样的错误:

      尝试将驱动程序添加到存储时遇到问题。

    • 处理解除阻止未签名驱动程序安装的错误
  3. IDE 仍然无法识别您的手机

回答by sobering

I came across this problem today and was getting increasingly frustrated until I found this blog post: http://vuknikolic.me/2013/03/10/idea-intellij-usb-device-not-found-android-problem/

我今天遇到了这个问题并且越来越沮丧,直到我找到了这篇博文:http: //vuknikolic.me/2013/03/10/idea-intellij-usb-device-not-found-android-problem/

Basically, you want to run two commands:

基本上,您要运行两个命令:

adb kill-server
adb devices

When you run the second command, it will restart the server and you should see your device listed:

当您运行第二个命令时,它将重新启动服务器,您应该会看到您的设备列出:

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
37329B0B96FD00EC    device

If you try running the application again from IntelliJ (or Android Studio), it should work if your device was listed above.

如果您尝试从 IntelliJ(或 Android Studio)再次运行该应用程序,如果您的设备在上面列出,它应该可以工作。

回答by sprocket12

for Sony EXPERIA I installed PC Companion and then everything was ok. (or you can just install or update your device deriver but it didn't work for me on windows 7.)

对于 Sony EXPERIA,我安装了 PC Companion,然后一切正常。(或者您可以只安装或更新您的设备派生器,但它在 Windows 7 上对我不起作用。)

PC Companion Download link: http://www.sonymobile.com/gb/tools/pc-companion/

PC 伴侣下载链接:http: //www.sonymobile.com/gb/tools/pc-companion/

回答by Ashfak Md Shibli

Android sdk Manager

Android SDK 管理器

You can install or update your Google Usb Driver in sdk manager. It may help for any unrecognized device. Click upper link to see where.

您可以在 sdk 管理器中安装或更新您的 Google Usb 驱动程序。它可能对任何无法识别的设备有所帮助。点击上方链接查看位置。

回答by Joao Vitor Marques

It could be the configuration of your phone. Open the developer settings and make sure that the option of USB Configuration is in:

这可能是您手机的配置。打开开发者设置,确保USB配置的选项在:

MIDI

迷笛

回答by Glenn K. A.

Connect Your Phone To ADB : Linux

将您的手机连接到 ADB:Linux

  1. Create a file called android.rules
  2. Without switching directories, run the following commands : a. sudo cp android.rules /etc/udev/rules.d/51-android.rules b. sudo chmod 644 /etc/udev/rules.d/51-android.rules c. sudo chown root. /etc/udev/rules.d/51-android.rules d. sudo service udev restart e. sudo your-path-to-adb-executable/adb kill-server f. sudo your-path-to-adb-executable/adb start-server g. your-path-to-adb-executable/adb devices

  3. Will be able to see on Android Studio

  1. 创建一个名为 android.rules 的文件
  2. 不切换目录,运行以下命令:须藤cp android.rules /etc/udev/rules.d/51-android.rules b. 须藤 chmod 644 /etc/udev/rules.d/51-android.rules c. 须藤 chown 根。/etc/udev/rules.d/51-android.rules d. 须藤服务 udev 重启 e. sudo your-path-to-adb-executable/adb kill-server f. sudo your-path-to-adb-executable/adb start-server g. 你的路径到 adb 可执行文件/adb 设备

  3. 就能在Android Studio上看到

[Credits: set up device for development (?????? no permissions)

[致谢:设置用于开发的设备(?????? 没有权限)

回答by fantaxy025025

everyone, Please upgrade to the new version (for me it's 12.04). Everything is ok now!

大家,请升级到新版本(对我来说是12.04)。现在一切正常!

Don't waste more time in the forking bugs and version cross.

不要在分叉错误和版本交叉上浪费更多时间。