This documentation is helpful for running and testing this project on Android devices.
https://docs.flutter.dev/deployment/android
- Open a terminal and run
keytool -genkey -v -keystore c:\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 1000 -alias upload
- Create a file named TankControllerManager/android/key.properties and in it
storePassword=<password from step one>
keyPassword=<password from step one>
keyAlias=<alias from step one>
storeFile=<location of output from step one, may require double backslashes '\\' in file path, c:\\key.jks>
- Run
flutter build appbundle
- Open a terminal and run
flutter build apk --split-per-abi
- Ensure Android Studio, Android SDK, Android SDK Platform-Tools, and Android SDK Build-Tools, are all updated. Run
flutter doctor
- Enable developer options and USB debugging on the device.
- Once plugged in, run
flutter devices
- Finally run
flutter run -d deviceID