I want to create my first flutter app but the official doc says we must install android studio to run the app and test it but the android studio is so big and heavy and I am a web developer just trying to test my first flutter app and dont want to use the android studio.
any solution to run and develop an app in VS Code and windows?
-
We did you get that? I believe you can use VS Code on Windows to develop and test Flutter app.Phuc Tran– Phuc Tran2019-09-12 14:47:01 +00:00Commented Sep 12, 2019 at 14:47
-
run command "flutter doctor" give me error that i need to install android studiojavad bat– javad bat2019-09-12 14:55:05 +00:00Commented Sep 12, 2019 at 14:55
-
did you read this official flutter doc?pskink– pskink2019-09-12 14:56:18 +00:00Commented Sep 12, 2019 at 14:56
-
yes thank you i findout android studio message is not error and it is warningjavad bat– javad bat2019-09-13 18:28:36 +00:00Commented Sep 13, 2019 at 18:28
-
yes thank you i findout android studio message is not error and it is warningjavad bat– javad bat2019-09-13 18:29:30 +00:00Commented Sep 13, 2019 at 18:29
4 Answers
It is very possible to use VS Code for Flutter without having installed Android Studio, however it's a little more involved. You'll need to download and install the Android SDK on its own, and without Android Studio you'll be missing a few things (like the UI for managing emulators, updating the SDK components, or editing assets like icons).
I tried for a while to work without it (I'm the developer of the VS Code extensions and installing it felt like admission that there are things missing there 😄) but after a while it turned out to be easier to just install it (especially updating SDK bits).
Comments
You can always make flutter apps in Visual Studio Code using Flutter and Dart plugins, but to run them you'll need an emulator. This need can be eliminated by using an actual device connected via USB. But what about other things like build tools, android SDK, CLI tools, etc. Things that aren't easy to get separately. Android studio saves you all this trouble.
My suggestion is to have Android Studio installed on the sidelines. Do all your work in VSCode, many people are happy with that. To occasionally configure stuff the studio will be helpful.
Comments
follow this medium article and install and follow every step.
new version of flutter needs android sdk 28 or higher so chnage sdkmanager “system-images;android-27;default;x86_64” to sdkmanager “system-images;android-28;default;x86_64” and other 27 to 28 too.
after installation, if you cant connect to the emulator try command emulator -avd emulator-name for example emulator -avd nexus and see whats the problem. for me it was
Incompatible HAX module version 3,requires minimum version 4
so i download and install latest version from here then its work perfectly