Answer a question

I am trying to debug my flutter application on a Pixel 3 connected via USB. I've used a nexus already so i'm just trying a newer Google phone. I have the developer mode on and my surface pro recognizes it but VSCode says no device. Ive gotten this to work with older android phones so i'm not sure what else needs to be set up for it to work.

I've run flutter doctor and it says No devices available.

Answers

I have the developer mode on and my surface pro recognizes it but VSCode says no device.

If you are connecting a new device, it is possible that adb is not authorized on device. It is possible that you dismissed/missed the dialog for USB debugging authorization where it shows RSA Key. Go to the Developer options on the phone and click "Revoke USB debugging authorization", then connect your phone again and the dialog should appear:

enter image description here enter image description here

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品