Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect flutter to Bluestacks emulator?

I'm setting up an Android device for flutter development and need to have a lightweight emulator. How do I connect bluestacks to flutter? Since the android studio is too slow for my machine and I only have an iPhone.

like image 234
Mcrey Fonacier Avatar asked Apr 27 '19 07:04

Mcrey Fonacier


1 Answers

Yes, You can connect Flutter to Bluestacks.

You have to enable adb on Bluestacks' configurations, by following:

gear icon > Advanced configs > (marks as true: enable ADB connection)

after that, you must to restart your bluestacks, then open a terminal and go to your Android SDK folder:

%localappdata%/Android/Sdk/platform-tools/

then type the follow commands:

adb connect localhost:5555

So, by now if you type flutter devices you will get the emulator device name on the list, then you can run your apps on it

like image 168
Allansrc Avatar answered Sep 30 '22 16:09

Allansrc