Part 19 | How to generate signed aab file from flutter project | android app bundle for play store

In this video we will learn how to generate signed aab file from flutter project.
android apk or android app bundle file is required to be uploaded to google play store.
Here are the steps to generate aab file
1. Create your Keystore
Keystore is the file you should have to sign your AAB file.
Run the following command in Terminal at your project's root directory.
keytool -genkey -v -keystore ttwenty.jks -keyalg RSA -keysize 2048 -validity 10000 -alias ttwenty
After entering this command, you will be asked to fill key's password and some information.
2. Create a reference file to Keystore
Create a file named key.properties at [project root]/android/
storePassword=password from previous step
keyPassword=password from previous step
keyAlias=ttwenty
storeFile=../../ttwenty.jks
if you create with different key alias, please specify it in keyAlias.
For storeFile if you choose to put Keystore file at the root of your Flutter's project directory. This file's path would work.
3. Modify app/build.gradle
Load keystore's properties
Open [project]/android/app/build.gradle, look for android block, and put following code at the top of its.
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
...
}
Replace buildTypes block
find buildTypes block. it should look like the below:
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now,
// so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
you have to replace it with following code:
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
4. Let's sign and build the release version
flutter clean
flutter pub get
flutter build appbundle
PLAYLIST : • Complete Flutter T20 W...
CODE and Assets : github.com/abidroid/t20_yt
-- SUBSCRIBE HERE --
/ intellilogics
SOCIAL MEDIA: Follow Me :-)
Facebook | / muhammad.abid3
Linkedin | www.linkedin.com/in/abidroid
GitHub | github.com/abidroid
Website | intellilogics.pk
#Flutter #Tutorial #IntelliLogics
LIKE & SHARE & ACTIVATE THE BELL
Thanks For Watching :-)

Пікірлер: 34

  • @chedderstudios
    @chedderstudios Жыл бұрын

    From Nigeria, Thank You very much Brother, this video explained every thing in a Very nice way. Thank you very much for explaining step by step with description. let me look for the previous parts and the next part.

  • @FaizMuhammadKhan
    @FaizMuhammadKhan Жыл бұрын

    Thank you very much sir Intellilogics Channel is our one stop shop to all our flutter assets.

  • @intellilogics

    @intellilogics

    Жыл бұрын

    You are most welcome dear.

  • @temitopejames6088
    @temitopejames6088 Жыл бұрын

    You are a great teacher... This is concise. Thank You very much

  • @intellilogics

    @intellilogics

    Жыл бұрын

    Thank you! 😃

  • @user-wm3on3dz2e
    @user-wm3on3dz2e Жыл бұрын

    He is the best and he helps alot

  • @TechnoSubrata
    @TechnoSubrata Жыл бұрын

    Thank You Brother, Very nice way. Thank you very much for explaining step by step with description. I am yours. By following this I was able to do the bill myself.❤Love You from India

  • @intellilogics

    @intellilogics

    Жыл бұрын

    Most welcome bro

  • @TechnoSubrata

    @TechnoSubrata

    Жыл бұрын

    @@intellilogics brother please share you whatsapp details

  • @TechnoSubrata

    @TechnoSubrata

    Жыл бұрын

    @@intellilogics PS F:\Mohilamart Main> flutter build appbundle Resolving dependencies... (6.8s) Because every version of flutter_paystack from git depends on intl ^0.17.0 and eshop depends on intl ^0.18.0, flutter_paystack from git is forbidden. So, because eshop depends on flutter_paystack from git, version solving failed.

  • @muhammadharis5389
    @muhammadharis5389 Жыл бұрын

    superrr video sir🤩😍😍

  • @hohoangngon5781
    @hohoangngon57817 ай бұрын

    pefect

  • @arainhouse
    @arainhouse Жыл бұрын

    Thank you so much brother you saved me....❤❤❤❤❤❤❤❤❤

  • @intellilogics

    @intellilogics

    Жыл бұрын

    Always welcome

  • @MuhammadFaizan-xq2sh
    @MuhammadFaizan-xq2sh Жыл бұрын

    Informative :)

  • @intellilogics

    @intellilogics

    Жыл бұрын

    Glad it was helpful!

  • @mirajhossainshawon5821
    @mirajhossainshawon58215 ай бұрын

    Great Thank You

  • @intellilogics

    @intellilogics

    5 ай бұрын

    You are welcome!

  • @romzanali9930
    @romzanali9930 Жыл бұрын

    wow!! it worked. by the way, do I have to make jks file for each time I make appbundle?

  • @intellilogics

    @intellilogics

    Жыл бұрын

    No need to create each time.

  • @Abdullah-soft
    @Abdullah-soft11 ай бұрын

    thanks

  • @intellilogics

    @intellilogics

    11 ай бұрын

    You're welcome!

  • @dhruvsompura5487
    @dhruvsompura5487 Жыл бұрын

    great awesome thanks opop

  • @intellilogics

    @intellilogics

    Жыл бұрын

    You're welcome!

  • @ZKCODer
    @ZKCODer3 ай бұрын

    need your help abb file create ni ho rhi error arha

  • @HemloSain
    @HemloSain11 ай бұрын

    How to solve apk not signed by Google please reply me waiting for your kind help

  • @amazingdeveloperteam286
    @amazingdeveloperteam286 Жыл бұрын

    sir always times showing this error please help me On Build: Execution failed for task ':app:validateSigningRelease'

  • @intellilogics

    @intellilogics

    Жыл бұрын

    make sure path is correct in key.properties file for the jks file.

  • @muhammadharis5389
    @muhammadharis5389 Жыл бұрын

    sir jb y file generate hojaye .aab wala to y play store pr uplaod kliye ready hogaya k nai Rehnumai frmaye zara

  • @intellilogics

    @intellilogics

    Жыл бұрын

    yes, this .aab file is ready to be uploaded to play store.

  • @muhammadharis5389

    @muhammadharis5389

    Жыл бұрын

    @@intellilogics ok sir Thanks ❤️

  • @bibekghimire647
    @bibekghimire647 Жыл бұрын

    flutter : The term 'flutter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + flutter clean + ~~~~~~~ + CategoryInfo : ObjectNotFound: (flutter:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException this error occurs when run flutter clean

  • @avoracity6103

    @avoracity6103

    Жыл бұрын

    flutter is not in your PATH

Келесі