Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

App Publishing in Google Play

The Complete Guide for Publishing your App in Play Store

Table Of Content

Change Package Name

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.

  1. 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"
  
    }
  1. 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.

  2. You'll need to re-sync Gradle and rebuild the project after this.

Privacy Policy

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

Adding a Launcher Icon

Here in this link how to add a launcher icon for your app using a Flutter Launcher Icons Package

Release

Signing the app

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.

Step 1: Create an upload key:

There are 2 ways to create an upload key:

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

Step 2: Configure signing in gradle

  1. Go to Your Project/android/app/build.gradle file.
  2. 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.

  1. Find the buildTypes block 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
       }
   }

Prepare your release

Step 1: Creating developer account

Note : Google Play charges a $25 one-time developer fee.

Step 2: Setting the app for release

In this video here , detailed instruction on how to set your app for release. Start watching after 2:29 mins.

Common Errors

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.

Solution 1:

  • Rebuild the project and generate signed apk once again !

Solution 2:

  • click and upload with new keystore file that created manually. photo

Error: App URL not found in Google Play (for internal testers)

not found

Solution:

  1. Open your app → Release → Testing → Internal testing
  2. Tap on Testers → Scroll down and you will see How testers join your test at the bottom.

image

After that testers should accept the inventation, install app from Google Play and check the updates

Error: .png failed to read PNG signature: file does not start with PNG signature.

photo

Solution 1:

  • In build.gradle
aaptOptions {
    cruncherEnabled = false
}
  • Delete content inside C:\Users.gradle\caches (or ~/.gradle/caches for Mac and Linux).

  • Restart Android Studio

Solution 2:

  • Add cruncherEnabled = false in build.gradle

Solution 3:

  • Convert the image into png rather than just changing the extension.

Resources

Documentation

Video Links

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors