Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I run my physical device as an emulator on vs-code?

I’m currently learning Flutter development and all I have is the web emulator on vs-code I tried to use a virtual device as an emulator but didn’t work and tried to connect my physical device too but didn’t work either, the problem is that vs-code is not recognizing any of them!
How do I connect my physical device to use it as an emulator, knowing that the USB debugging option is turned on?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

1.You have to enable developer options in your testing device and then turn on usb debugging.

2.Then use this command in vs code:

flutter run -d device-name

Ex-flutter run -d s3789

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading