Last active
February 2, 2024 12:21
-
-
Save espresso3389/1692d4decfcec3d7b330e31cb93f143a to your computer and use it in GitHub Desktop.
Create Flutter Android build environment on Windows
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
# Need to enable scripting before executing the file | |
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force | |
cd ~ | |
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
scoop install git | |
scoop bucket add java | |
scoop install android-clt | |
scoop install openjdk17 | |
Write-Output Y Y Y Y Y Y Y Y Y Y Y | sdkmanager --licenses | |
git clone https://github.com/flutter/flutter | |
$env:PATH = "$env:USERPROFILE\flutter\bin;$env:PATH" | |
flutter channel stable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Addtional commands to build
appbundle
of pdfrx example: