简体   繁体   中英

Intellij Idea does not find my android device

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.

It says "No USB Device Found".

Using 11.1.2

Any ideas?

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

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/

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.

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

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.)

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

Android sdk Manager

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.

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

MIDI

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

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

Connect Your Phone To 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM