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!

Sentry mobile image

Mobile Vitals: A first step to Faster Apps

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read the guide →

Top comments (0)

Jetbrains image

Build Secure, Ship Fast

Discover best practices to secure CI/CD without slowing down your pipeline.

Read more

👋 Kindness is contagious

DEV works best when you're signed in—unlocking a more customized experience with features like dark mode and personalized reading settings!

Okay