命令 flutter devices
和 adb devices
给了我同样的错误:
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
检测到我的旧 Nexus 5,但是,使用我的 Pixel 手机,我得到了
权限错误。 Pixel 手机处于 Debug模式。
Ubuntu 7.10 上 flutter doctor
的输出是
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)
如何让我的计算机访问我的 Pixel 手机?
最佳答案
将我的 Pixel 手机插入电脑后,在通知栏中,我将其从 USB“为手机充电”更改为“PTP”(图片传输协议(protocol))。
然后我运行 flutter doctor
并且我的 Pixel 要求我为我的计算机“允许 USB 调试”,我勾选了“始终允许来自这台计算机”的框。
我通过 https://github.com/flutter/flutter/issues/10330 找到了解决方案, 指向another Stack Overflow post .
关于android - 没有权限(plugdev 组中的用户;你的 udev 规则错了吗?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49216585/