Skip to content

Instantly share code, notes, and snippets.

@rsanjuan87
Created July 12, 2024 17:38
Show Gist options
  • Save rsanjuan87/f1522300e8e0261e1555293b47cfa2af to your computer and use it in GitHub Desktop.
Save rsanjuan87/f1522300e8e0261e1555293b47cfa2af to your computer and use it in GitHub Desktop.
install flutter termux

download latest release

https://github.com/mumumusuc/termux-flutter

https://github.com/mumumusuc/termux-android-sdk

wget https://github.com/mumumusuc/termux-android-sdk/releases/download/30.0.3/android-sdk.deb
wget https://github.com/mumumusuc/termux-flutter/releases/download/3.19.0/flutter.deb
apt install *.deb
termux-fix-shebang /data/data/com.termux/files/usr/opt/flutter/bin/flutter
flutter config --android-sdk $PREFIX/opt/android-sdk

edit android/gradle.properties under your flutter project and add this line

android.aapt2FromMavenOverride=/data/data/com.termux/files/usr/opt/android-sdk/build-tools/30.0.3/aapt2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment