If you are developing for Android on a Motorola DROID using Eclipse (Galileo) on Ubuntu 9.10 and you get a pop-up window in Eclipse about a ‘NullPointerException’ when you connect your DROID and Click ‘Run’ (to install and run your application on the DROID) AND if you are getting the following when you run ‘adb devices’ in terminal:
$ adb devices
List of devices attached
???????????? no permissions
The solution is to do the following:
- Create/Edit the file located at ‘/etc/udev/rules.d/10-motorola-droid.rules’ .
sudo gedit /etc/udev/rules.d/10-motorola-droid.rules
- Enter the following into the (possibly blank/new) file:
(SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct} =="41db", MODE="0600", OWNER="<insert username>"Note that you must replace the part that says “insert_username” with your own username.
- Save File and Close text editor.
- Restart udev.
sudo service udev restart - Restart adb.
adb kill-server
adb start-server - Unplug and Replug-in the USB cable to the DROID.
That should do the trick. If you run ‘adb devices’ again, you should see something similar to the following output:
$ adb devices
List of devices attached
0043482916003106 device
You may need to restart Eclipse to get the debugging support (Logcat, etc.), but you should be able to download and run your development applications on the DROID right away.
Posted by shpang