Member-only story
Fix it — Flutter: USB Debugging, are your UDEV rules wrong?
After setting up flutter on my laptop running Ubuntu, I ran “flutter doctor” to ensure my environment was setup properly. Unfortunately I was immediately prompted with the following error related to my connected android device for debugging via USB:
“Error 1 retrieving device properties for ro.product.cpu.abi:
adb: insufficient permissions for device: user in plugdev group; are your udev
rules wrong?”
See [http://developer.android.com/tools/device.html] for more information
Fortunately the fix was quite simple:
- Run the command “lsusb” to list all of your connected devices.
2. Determine which result is your android device. (In my case the Spreadtrum Communications inc)

3. Run the command: “sudo nano /etc/udev/rules.d/51-android.rules”
4. Add the following file content (note the 1782:5d24 from the screenshot):
SUBSYSTEM==”usb”, ATTR{idVendor}==”1782", ATTR{idProduct}==”5d24", MODE=”0666", GROUP=”plugdev”
5. Restart your computer, once it boots back up you’ll be good to go
