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
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.
Thank you very much sir Intellilogics Channel is our one stop shop to all our flutter assets.
@intellilogics
Жыл бұрын
You are most welcome dear.
You are a great teacher... This is concise. Thank You very much
@intellilogics
Жыл бұрын
Thank you! 😃
He is the best and he helps alot
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
Жыл бұрын
Most welcome bro
@TechnoSubrata
Жыл бұрын
@@intellilogics brother please share you whatsapp details
@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.
superrr video sir🤩😍😍
pefect
Thank you so much brother you saved me....❤❤❤❤❤❤❤❤❤
@intellilogics
Жыл бұрын
Always welcome
Informative :)
@intellilogics
Жыл бұрын
Glad it was helpful!
Great Thank You
@intellilogics
5 ай бұрын
You are welcome!
wow!! it worked. by the way, do I have to make jks file for each time I make appbundle?
@intellilogics
Жыл бұрын
No need to create each time.
thanks
@intellilogics
11 ай бұрын
You're welcome!
great awesome thanks opop
@intellilogics
Жыл бұрын
You're welcome!
need your help abb file create ni ho rhi error arha
How to solve apk not signed by Google please reply me waiting for your kind help
sir always times showing this error please help me On Build: Execution failed for task ':app:validateSigningRelease'
@intellilogics
Жыл бұрын
make sure path is correct in key.properties file for the jks file.
sir jb y file generate hojaye .aab wala to y play store pr uplaod kliye ready hogaya k nai Rehnumai frmaye zara
@intellilogics
Жыл бұрын
yes, this .aab file is ready to be uploaded to play store.
@muhammadharis5389
Жыл бұрын
@@intellilogics ok sir Thanks ❤️
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
Жыл бұрын
flutter is not in your PATH