Ismeet
Ismeet

Reputation: 449

Publishing android app error: You need to use a different package name because "com.xxxx" already exists in Google Play

I use react-native to make an app, upload apk on play store, and get this issue: Publishing android app error: You need to use a different package name because "com.xxxx" already exists in Google Play.

My package name it is also connected to google-services.jason(firebase analytics and AdMob).

How properly change package name?

Upvotes: 3

Views: 2272

Answers (1)

CodeGeek
CodeGeek

Reputation: 119

You definitely need to assign a new/unique bundle identifier to your app. For that you will have to make changes to:

  • applicationId in (/android/app/build.gradle file)
  • package in (/android/app/src/main/AndroidManifest.xml)
  • and other files with Package ID

But I would suggest you to use the package react-native-rename which will safely update the App and Package name as well.

For firebase (google-services.json), you will need to configure another app with newly created bundle id and then attach the updated .json file to the project.

Upvotes: 3

Related Questions