

If previous flutter version code in pubspec.yaml file is Now just follow the following steps to build signed apk with existing keystore details.īefore generating Signed APK with existing keystore details make sure upgrade each time your Flutter Version from pubspec.yaml file and Version Code from local.properties file. If you generated previous fresh Signed APK using Android Studio as steps given in bellow link then don't worry. When you build your flutter app with flutter build apk a release apk with the given keystore will be generated in build/app/outputs/apk/release/app-release.apk. KeystoreProperties.load(new FileInputStream(keystorePropertiesFile)) In your app/adle add those lines: def keystorePropertiesFile = rootProject.file("key.properties")ĭef keystoreProperties = new Properties()

Then place your *.jks (in this case android.jks) in android/

Edit the AndroidManifest according to your needs then add in android/key.properties the keystore data: storePassword=STORE_PASSWORD
