DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Andres Urdaneta
Andres Urdaneta

Posted on

How to change App ID/Package Name for Android app built with React Native

When uploading a bundled version of your Android app to Google Play Console, you might need to change your Package Name / Application ID to satisfy Google Play Console rules.

If you are getting an error like the following (or something similar)

You need to use a different package name because "com.***.***.***" already exists in Google Play
Enter fullscreen mode Exit fullscreen mode

Then try out the following steps.

Change Package Name / Application ID in Android app built with React Native.

  • In VSCode go to the Search

Search

  • Enter your current Package Name / Application ID in the search text input.

NOTE: If you don't know what's your current Package Name / Application ID, you can find it within the android/app/build.gradle file, in the applicationId field. In my case, the current Package Name / Application ID is com.papitas.

  • Enter the path to your android directory in the files to include text input.

In my case my android directory lives under projectrootdir/apps/mobile/android yours could be different,

Files to include

This will display all the instances of the string com.papitas.

  • Use the "Replace" text input to replace your current Package Name / Application ID for the new one.

Replace old package name for new one

That's it!

Top comments (0)

πŸ‘‹ Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: