DEV Community

amanbhoria
amanbhoria

Posted on

Android - Error uploading .aab file to play store

Image description

If you encounter this error, follow these steps to ensure consistency with your package name and signing key:

  • Make sure the package name in your app.json file matches the one you used when you first uploaded the .aab file.
 "android": {
      "permissions":["CAMERA","READ_EXTERNAL_STORAGE"
,"WRITE_EXTERNAL_STORAGE"],
      "adaptiveIcon": {
        "foregroundImage": "./assets/logo.png",
        "backgroundColor": "#ffffff"
      },
      "package": "com.amanbhoria.yourPackageName"
    }
Enter fullscreen mode Exit fullscreen mode
  • When you upload an .aab file, the Google Play Store associates that package name with your default signing key. Changing the package name can lead to signing key errors.

  • If you have changed the package name, you have two options:

  • Reset your SHA-1 key by contacting the Google Play Support team.

a) If you're using Expo developer console, you will find the credentials there
b) You can access and download your credentials using this command:
eas credentials

  • Revert to the original package name that was used during the initial upload.

Image description

Although I've resolved this error but now i have to run the build again just to change the versionCode variable in app.json.

Please refrain from making this mistake XD.

Keep building!

Top comments (0)