Last active
June 4, 2022 18:03
-
-
Save tooinfinity/b6849fff53b6e55717d06ca116581608 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Environment | |
| Windows 10 | |
| Target folder: D: (use any folder that you want) | |
| 1. Install flutter | |
| C:\android | |
| mkdir flutter | |
| cd flutter | |
| git clone https://github.com/flutter/flutter.git -b stable | |
| Open environtment setup and add to Path: | |
| C:\android\flutter\bin | |
| Restart terminal to take affect. | |
| If you want to upgrade, run: | |
| flutter upgrade | |
| 2. Install JDK | |
| Download jdk then add JAVA_HOME variable: | |
| C:\Program Files\Java\jdk-18.0.1.1 # replace with yours | |
| 3. Install Android SDK | |
| Download at https://developer.android.com/studio/#command-tools | |
| then extract to C:\android\SDK\, there will be a tools folder, set Environment variable: | |
| ANDROID_SDK_ROOT to D:\android\SDK\ | |
| cd C:\android\SDK\cmdline-tools\bin | |
| and run sdkmanager.bat "cmdline-tools;latest" --sdk_root=../../ | |
| after that set Environment variable path C:\android\SDK\cmdline-tools\latest\bin | |
| 4. Download Android SDK | |
| sdkmanager.bat "system-images;android-30;default;x86_64" | |
| sdkmanager.bat "platforms;android-30" | |
| sdkmanager.bat "build-tools;30.0.3" | |
| 5. Config flutter | |
| We need to add these variables to Path: | |
| C:\android\SDK\platform-tools | |
| Configure android sdk: | |
| flutter config --android-sdk %ANDROID_SDK_ROOT% | |
| Accept android licenses | |
| flutter doctor --android-licenses | |
| 6. Create the Emulator | |
| avdmanager create avd --name "touwfiq" --package "system-images;android-30;google_apis;x86_64" | |
| We need to add these variables to Path: | |
| C:\android\SDK\emulator | |
| List emulator in computer: | |
| emulator -list-avds | |
| Running the emulator : | |
| emulator -avd touwfiq | |
| (MyAvd is the name of emulator that we have created) | |
| 7. Check all issues | |
| flutter doctor -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment