Skip to content

Instantly share code, notes, and snippets.

@espresso3389
Last active February 2, 2024 12:21
Show Gist options
  • Save espresso3389/1692d4decfcec3d7b330e31cb93f143a to your computer and use it in GitHub Desktop.
Save espresso3389/1692d4decfcec3d7b330e31cb93f143a to your computer and use it in GitHub Desktop.
Create Flutter Android build environment on Windows
# 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
@espresso3389
Copy link
Author

Addtional commands to build appbundle of pdfrx example:

git clone https://github.com/espresso3389/pdfrx
cd pdfrx\example
flutter build appbundle --verbose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment