

This article is been Refered from StackoverFlow : How to build signed apk from Android Studio for Flutter. Having opened the project, click on Build, and then Generate Signed Bundle/APK Go to in your project & then Tools -> Flutter -> Open for. Now we have created signed apk successfully, To locate to the path where release version of apk is created check out below screenshot. You can see in above 5th step i have selected V2 (Full APK signature) to create full release version of my android flutter project If you are creating apk for final app release on play store then select release else if you are giving for testing you can select as bebug. Please note that after making any changes in adle file, you need to run as comment in your IDE “flutter clear” so the the changes will affect in signing process.Īfter creating keystore & seting Alias & password hit next button. StoreFile keystoreProperties ? file(keystoreProperties) : null Then add below code before buildType block: KeystoreProperties.load(new FileInputStream(keystorePropertiesFile)) Just before android block: add below keystorePropertiesĭef keystoreProperties = new Properties()ĭef keystorePropertiesFile = rootProject.file(‘key.properties’)

Here set a key store path there you want to create key store for your flutter project. Now, you will have a new window of your android studio, where your flutter project android verison is been opened.Ĭlick on Build > Generate Signed Bundle/APKĪfter Clicking on it you will see a new pop dialog box, there select apk/bundle. This will open android module version of your flutter project In Android Studio tab bar, Navigate towords Tools > Flutter > then Open Android module in android Studio.Ĭheck out the screenshot for path reference. How to generate signed apk in flutter android studio
