You need to use a different package name because "com.example" is restricted Make sure you choose a package name that is suitable over the life of your application. You cannot change the package name after you distribute your application to users.
- You need to set the package name using the applicationId in your project's build.gradle file:
defaultConfig {
applicationId "com.example.yourProject"
}
Change it into something unique for example:
defaultConfig {
applicationId "com.developerName.yourProject"
}
-
Then you can right-click on the package in your main/java folder and select Refactor > Rename. Select Refactor Package and type the new one you just used in applicationId.
-
You'll need to re-sync Gradle and rebuild the project after this.
Your mobile app (iOS, Android, Windows, BlackBerry) must have a Privacy Policy if the app collects personal data from users.
A Privacy Policy for Android Apps is Required by Google Play.
There are some websites that provides a tamplate for such thing. Click Here
Here in this link how to add a launcher icon for your app using a Flutter Launcher Icons Package
Application signing allows developers to identify the author of the application and to update their application without creating complicated interfaces and permissions. Every application that is run on the Android platform must be signed by the developer.
On Android, there are two signing keys:
- Deployment : The end-users download the .apk signed with the ‘deployment key’
- Upload : An ‘upload key’ is used to authenticate the .aab / .apk uploaded by developers onto the Play Store and is re-signed with the deployment key once in the Play Store.
There are 2 ways to create an upload key:
- Following the Android Studio key generation steps
- Running the following at the command line:
On Mac/Linux, use the following command:
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
On Windows, use the following command:
keytool -genkey -v -keystore %userprofile%\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
- Go to Your Project/android/app/build.gradle file.
- Add the keystore information from your properties file before the android block:
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
...
}
Load the key.properties file into the keystoreProperties object.
- Find the
buildTypesblock and replace it with the following signing configuration info:
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
- Go to Google Play Console and create an account for developer .
Note : Google Play charges a $25 one-time developer fee.
In this video here , detailed instruction on how to set your app for release. Start watching after 2:29 mins.
Error: Your Android App Bundle Is Signed With The Wrong Key. Ensure That Your App Bundle Is Signed With The Correct Signing Key And Try Again.
- Rebuild the project and generate signed apk once again !
- Open your app → Release → Testing → Internal testing
- Tap on Testers → Scroll down and you will see How testers join your test at the bottom.
After that testers should accept the inventation, install app from Google Play and check the updates
- In build.gradle
aaptOptions {
cruncherEnabled = false
}
-
Delete content inside C:\Users.gradle\caches (or ~/.gradle/caches for Mac and Linux).
-
Restart Android Studio
- Add
cruncherEnabled = falsein build.gradle
- Convert the image into png rather than just changing the extension.




