Publish to google play
Adding a launcher icon
To customize the app icon, you might want to open the assets/icon/logo.png file and replace your app icon.
Then cross-check the file image name in the pubspec.yaml
flutter_icons:
android: true
ios: true
image_path: "assets/icon/logo.png"
Then run the following command in your terminal
$flutter pub run flutter_launcher_icons:main
After successfully creating the icon you will get the following message
════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.8.0)
════════════════════════════════════════════
• Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
• Overwriting default iOS launcher icon with new icon
✓ Successfully generated launcher icons
Reviewing the app manifest
Review the default App Manifest file, AndroidManifest.xml, located in [project]/android/app/src/main and verify that the values are correct, especially the following:
Appname
Edit the
android:label
in theapplication
tag to reflect the final name of the app.
Change the App bundle ID
Change the package name in your
AndroidManifest.xml
Open the [project]/android/app/src/main/AndroidManifest.xml and change the package name com.bookstore.book into your bundle Id
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bookstore.book">
Open the [project]/android/app/build.gradle and under the defaultConfig change the applicationId com.bookstore.book into your applicationId
applicationId "com.bookstore.book"
Open the [project]/android/app/src/debug/AndroidManifest.xml and change the package name com.bookstore.book into your bundle Id
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bookstore.book">
Open the [project]/android/app/src/main/kotlin/com/example/appname/MainActivity.kt and change the package name com.bookstore.book into your package name
package com.bookstore.book
Open the [project]/android/app/src/profile/AndroidManifest.xml and change the package name com.bookstore.book into your bundle Id
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bookstore.book">
Building the app for release
You have two possible release formats when publishing to the Play Store.
App bundle (preferred)
APK
Build an app bundle
Enter cd [project]
Run flutter build appbundle
The release bundle for your app is created at /build/app/outputs/bundle/release/app.aab
Build an APK
From the command line
Enter cd [Project]
Run flutter build apk
Now we have our release APK ready for the Google Play Store.
To release the app to the play store kindly follow this
instructions
Publishing to the Google Play Store
Last updated