命令flutter设备和adb设备给我同样的错误:
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]
颤动的医生检测到我的旧Nexus 5,但是,用我的Pixel手机,我得到了
权限错误. Pixel手机处于调试模式.
来自Ubuntu 7.10的颤振医生的输出是
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”(图片传输协议).
然后我跑了一个漂亮的医生,我的Pixel让我为我的电脑“允许USB调试”,我勾选了“始终允许从这台电脑”.
我通过https://github.com/flutter/flutter/issues/10330找到了解决方案,
它指向another Stack Overflow post.