Android SDK under Widnows and Linux adb cannot find a device solution

Source: Internet
Author: User

Typically, after you have installed and configured the environment variables for the Android SDK, you will not see your device immediately after you successfully enter the ADB devices on the command line (Terminal). This eliminates the problem of the device itself, the most common is in the user directory of the. Android folder has no Adb_usb.ini files in it. This is true for both Windows and Linux environments.

Windows environment

Go to the C:users directory and find the folder of your name, and you'll see a. android named folder (no new one). After opening, there are some adbkey information to find out if there are any adb_usb.ini files, no new ones. The content is the address of the device, usually 0x1782.
Adb_usb.ini file formats such as:

0x1792
0x119a

Enter and save.

Ubuntu Environment

Similar to win, creates the Create file ". Android/adb_usb.ini" under the current user directory, which is the Idvendor of the device Lsusb sees.
A idvendor is added to each row in the Adb_usb.ini.

Then execute the command line:
sudo adb kill-server
sudo adb devices

You can see the device.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.