Skip to content

Instantly share code, notes, and snippets.

@Lecarvalho
Last active February 3, 2025 14:41
Show Gist options
  • Save Lecarvalho/7c3520ccf9a4b6e098c7aa5451f95630 to your computer and use it in GitHub Desktop.
Save Lecarvalho/7c3520ccf9a4b6e098c7aa5451f95630 to your computer and use it in GitHub Desktop.
1. Download flutter zip
2. Extract and set flutter bin path on PATH env varible
3. Download java jdk zip
4. Extract and set new env variable JAVA_HOME for jdk folder (not the bin)
5. Download android sdk commandline tools zip
6. Extract
7. Move all files from /cmdline-tools to /cmdline-tools/latest
7. Check the latest Android API version here: https://developer.android.com/tools/releases/platforms
8. On CMD, go to cmdline-tools/latest/bin folder
9. run: sdkmanager "platforms;android-[android api version you wish, for exemple 35]"
10. Check the latest Android build tools here: https://developer.android.com/tools/releases/build-tools
11. On CMD, run: sdkmanager "build-tools;[android build tool version you with, for exemple 34.0.0]"
12. sdkmanager --licenses
13. sdkmanager "platform-tools"
14. Create ANDROID_HOME env variable with the path of the folder that you put /cmdline-tools in. For exemple: In case your cmdline-tools path is C:\Workspace\android_sdk\cmdline-tools, your ANDROID_HOME should be C:\Workspace\android_sdk
15. Set PATH env variable with the values:
%ANDROID_HOME%\cmdline-tools\tools\latest\bin
%ANDROID_HOME%\build-tools
%ANDROID_HOME%\platforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment