51-android.rules-a file to solve the problem that eclipse on Ubuntu does not recognize Android phones

Source: Internet
Author: User

Project home: http://code.google.com/p/51-android/

If you use an android real machine in Ubuntu to develop Android applications, you may encounter a problem. That is, your mobile phone cannot be correctly identified in eclipse, and thus the android application cannot be installed and debugged properly.

Based on official and online materials, I have summarized the methods to completely solve this problem. The procedure is as follows:

1. Click to download the following file and decompress it.

51-android.zip
23.9 KB

2. decompress the file. Open "51-android.rules" in a text editor and replace "snowdream" with "your system username ". Save.

3. copy the file "51-android.rules" to the/etc/udev/rules. d/directory. The command is as follows:

 sudo cp 51-android.rules /etc/udev/rules.d/

4. Restart udev

sudo service udev restart

5. Re-plug the Android phone.

6. Run the following command on the terminal:

adb devices

Running result:

snowdream@snowdream:~$ adb devicesList of devices attached HC24NPG00384device

Set successfully.

Note:

1. If the above method cannot be used for debugging, please record the brand and model of your mobile phone and the result of running the following command on the terminal (connect your Android phone to PC ), and give feedback to me.

2. References:

Ubuntu eclipse does not recognize Android mobile phone solution http://www.cnblogs.com/AndroidManifest/archive/2011/12/09/2281635.html
Udev http://wiki.cyanogenmod.com/wiki/Udev
Using hardware devices Co., http://developer.android.com/guide/developing/device.html.
51-android.rules to Autorun Android's ADB server http://www.joescat.com/linux/android_rules.html

Related Article

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.