Comment on page
Publish to google play
- 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
- 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">
You have two possible release formats when publishing to the Play Store.
- App bundle (preferred)
- APK
- Enter cd [project]
- Run flutter build appbundle
- The release bundle for your app is created at /build/app/outputs/bundle/release/app.aab
From the command line
- Enter cd [Project]
- Run flutter build apk
- Now we have our release APK ready for the Google Play Store.
Last modified 1yr ago