-
-
Save shelooks16/0125813bd186cd639ecb4f02e1a4be35 to your computer and use it in GitHub Desktop.
Setup windows environment for React-Native/Flutter development WITHOUT installing Android Studio
This file contains 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
-------HYPER-V---------- | |
Make sure HYPER-V is enabled. | |
1. Go to Control Panel\Programs\Programs and Features -> Turn Windows features on or off | |
2. Check Windows Hypervisor Platform | |
3. Launch BIOS | |
4. Enable Virtualization Technology in BIOS and Hardware Enforced Data Execution Prevention | |
5. Restart PC | |
-----JDK----- | |
1. Download Java JDK (eg 15.0.2) | |
2. Unpack to C:\Program Files (x86)\Java\jdk-15.0.2 | |
3. Add new System Environment Variable named "ANDROID_HOME" with value "C:\Program Files (x86)\Java\jdk-15.0.2" | |
4. To PATH system variable add: "%JAVA_HOME%\bin" | |
-----ANDROID SDK----------- | |
1. Download Android SDK, head to https://developer.android.com/studio#downloads and download Command line tools only for Windows. | |
2. After downloaded, extract the folder content in a new folder in "C:\Android\cmdline-tools\latest" | |
3. Add new System Environment Variable named "ANDROID_HOME" with value "C:\Android" | |
4. To PATH system variable add: | |
%ANDROID_HOME%\cmdline-tools\latest\bin | |
%ANDROID_HOME%\emulator | |
5. From the terminal execute to see the list of available packages: | |
sdkmanager.bat --list | |
6. Install packages: | |
sdkmanager.bat 'platform-tools' | |
sdkmanager.bat 'build-tools;29.0.2' | |
sdkmanager.bat 'platforms;android-29' | |
------ANDROID EMULATOR-------------- | |
https://gist.github.com/mrk-han/66ac1a724456cadf1c93f4218c6060ae | |
1. List All System Images Available for Download: | |
sdkmanager.bat --list | grep system-images | |
2. Download Image: | |
sdkmanager.bat --install "system-images;android-29;default;x86" | |
3. Create Emulator from the image: | |
echo "no" | avdmanager.bat --verbose create avd --force --name "and29" --package "system-images;android-29;default;x86" --tag "default" --abi "x86" | |
4. Open "~/.android/avd/and29.avd/config.ini" and add those lines: | |
skin.name=1080x1920 # proper screen size for emulator | |
hw.lcd.density=480 | |
hw.keyboard=yes # enables keys from your laptop to be sent to the emulator | |
5. Run Emulator: emulator @and29 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment