Flutter – Build and Release an Android App | App Signing [2022] ,Fix All Problems With Steps

https://youtu.be/XNGT1rVyPrE






 1-Change App Icon

A. flutter_launcher_icons: ^0.9.2 B. flutter_icons: android: true ios: true image_path: “assets/icon.jpg” C. assets: – assets/ D. flutter pub run flutter_launcher_icons:main E. minSdkVersion 19 2-Rename App A. pub global activate rename B. pub global run rename –bundleId com.hdev.badge C. pub global run rename –appname “New Badge” D. nfo.plist key CFBundleDisplayName /key string New Badge /string 2-Signing the app keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload If not woking use android studio java A. Delete old version that have same name B. Flutter doctor -v Will show you the java location /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java C. /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/ D. Any space use like /AndroidStudio.app /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload E. add File key.properties storePassword=password from previous step keyPassword=password from previous step keyAlias=upload storeFile=location of the key store file, such as /Users/user name/upload-keystore.jks def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file(‘key.properties’) if (keystorePropertiesFile.exists()) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) } android { signingConfigs { release { keyAlias keystoreProperties[‘keyAlias’] keyPassword keystoreProperties[‘keyPassword’] storeFile keystoreProperties[‘storeFile’] ? file(keystoreProperties[‘storeFile’]) : null storePassword keystoreProperties[‘storePassword’] } } buildTypes { release { signingConfig signingConfigs.release } } Pubspc.yaml version: 1.0.0+1 To update 3-Signing the app D. [project]/android/app/build.gradle # android {     defaultConfig {         …       minSdkVersion 19 multiDexEnabled true targetSdkVersion flutter.targetSdkVersion     }     … } dependencies {     implementation “androidx.multidex:multidex:2.0.1” } # Terminal flutter clean 3-Build AAB # flutter build appbundle If this show Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 App gradle classpath ‘com.android.tools.build:gradle:7.1.0’ Grade wrapper /gradle-7.2-all.zip Flutter Launcher Icons – Dart packages: https://pub.dev/packages/flutter_launcher_iconsFlutter Rename – Dart packages: https://pub.dev/packages/renamehttps://pub.dev/packages/renameFlutter – Build and Release an Android App | App Flutter Tutorial – How To [2022] Build, Release App how to create flutter build first appbundle release file aab 🔥 Subscribe for more: https://www.youtube.com/channel/UCVPdBBT-nIPT4nvGP5Fktsw 🎓More tutorials you may like ● Fix Flutter Firebase Common Problems [2022] : https://www.youtube.com/watch?v=iWIiXADqsm0&t=62s● Onboarding Screen Design from Scratch without any library:https://www.youtube.com/watch?v=Bq8i7CMaPko 📡 Social Media GitHub: https://github.com/HDEVCODER Twitter: https://twitter.com/CoderHdev #Flutter #Tutorial #hdevcoder Thanks for watching! Make sure to like + Subscribe For More!

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *