The commands flutter devices
and adb devices
are giving me the same error:
adb devices
List of devices attached
FA69H0308097 no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]
flutter doctor
detects my old Nexus 5, but, with my Pixel phone, I get
the permission error. Pixel phone is in debug mode.
The output from flutter doctor
on Ubuntu 7.10 is
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.1.5, on Linux, locale en_AU.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 3.0)
[✓] VS Code (version 1.21.0)
Error retrieving device properties for ro.product.cpu.abi:
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
[✓] Connected devices (1 available)
How can I enable my computer to access my Pixel phone?
With my Pixel phone plug into the computer, in the notification shade, I changed it from USB "Charge this phone" to "PTP" (Picture Transfer Protocol).
I then ran flutter doctor
and my Pixel asked me to "Allow USB debugging" for my computer, I ticked the box to "Always allow from this computer".
I found the solution via https://github.com/flutter/flutter/issues/10330, which pointed to another Stack Overflow post.