flutter publish android code example
Example 1: flutter publish package command
flutter pub publish --dry-run /// run this before publishing the package
flutter pub publish /// when ready to publish
Example 2: build apk flutter command
flutter clean
flutter build apk
Example 3: flutter generate apk
flutter build appbundle
Example 4: sign flutter app android studio
keytool -genkey -v -keystore c:/Users/USER_NAME/key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key
Example 5: flutter signed apk
keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
Example 6: flutter release
keytool -genkey -v -keystore c:\Users\USER_NAME\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key