DEV Community

Andres Urdaneta
Andres Urdaneta

Posted on

12 2

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!

Sentry blog image

The Visual Studio App Center’s retiring

But sadly….you’re not. See how to make the switch to Sentry for all your crash reporting needs.

Read more

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay