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