Flutter Intro - Technical Session
flutter pub get
Unzip flutter_windows somewhere (not in c:\program files)
Update path to add c:\where\unzipped\flutter\bin
so that it appears BEFORE the dart-sdk\bin folder from previous session.
After reloading the CLI process, check if path is correct with:
CMD> where flutter dart
POWERSHELL> where.exe flutter dart
# Should result in
C:\dev\src\flutter\bin\flutter
C:\dev\src\flutter\bin\flutter.bat
C:\dev\src\flutter\bin\dart
C:\dev\src\flutter\bin\dart.bat
C:\dev\src\dart-sdk\bin\dart.exe
Then run flutter doctor
after each step until the doctor says it's ok!
Once the doctor gives the OK, do the Test Drive
flutter doctor --android-licenses # From elevated prompt
If you get something like the error below, install Java SDK (see below)
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
choco install -y androidstudio
Additional installation will begin once started.
If HAXM failed, go to "Turn Windows features on or off" and disable Hyper-V
File > Settings > Dart > Dart SDK path
AVD Manager (Icon right top) > Setup a device and run it SDK Manager (Icon right top) > Android SDK > SDK Tools > Android SDK Platform-tools
If flutter doctor
cannot detect Android Studio even if it has been installed, you can use flutter config --android-studio-dir=c:\android\studio
Links
- Failed to install HAXM during Android Studio installation
- “unable to locate adb” using Android Studio
choco install -y jdk8
Need environment variables: %JAVA_HOME%
and add %JAVA_HOME%\bin
to PATH.