Member-only story

Fix it — Flutter: USB Debugging, are your UDEV rules wrong?

Frugal Thinker
Sep 10, 2020

--

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:

  1. 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

--

--

Frugal Thinker
Frugal Thinker

Written by Frugal Thinker

👪 Dad 🌿 Vegan 🧮 Frugal Thinker👷 DIY'er 👨‍💻 Coder 🧪Info Seeker 🦉 Wise Owl 🏃‍♂️ Mud Runner 🥊 Kick Boxer 📈 Investor It's about freedom

Responses (1)

Write a response