4

I created a android app which is linked to Firebase . But i forgot to give package name so by default it took "com.example.abc.appname" . Here the problem is when i am uploading app in google playstore its not accepting release apk with generated with that file name.

  1. So how to change package name without getting any conflicts as it is linked to firebase.
  2. There is also a problem with google plus login its working fine with debug mode but failing to authenticate with release mode.I did not find any solution.App is in the release phase and i am facing these problems.
maneesh
  • 216
  • 3
  • 14

3 Answers3

5

You can't change the app data in the console. You'll have to delete the app and add a new one with the correct package name and SHA-1 as necessary. You'll have to recreate any information directed at the app, such as Remote Config parameters. This will not delete any data associated with the project, such as database values or Cloud Storage.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
1

change your package name from studio and then after you have to create new app in firebase with new package name. Otherwise you have to change package name in firebase and for existing project and replace json file in your studio.

Keep in mind you also have to replace your google-services.json. an make sure that com.example package not accept by google while you upload app in playstore. i suggest that you have to give package name like com.yourappname.

Mehul Kabaria
  • 6,404
  • 4
  • 25
  • 50
1

If you are using Firebase assistant:

  1. Delete your app in the Firebase console in the project settings.
  2. Now in Firebase assistant reconnect to the Firebase for any service.
  3. It will ask you to sync with the project. Click on Sync.
  4. The app with new package will be added and the google-services.json file will be automatically updated.

Also note that the package name of the applicationId value in the gradle file is considered.

Cheers

Sanath Bharadwaj
  • 733
  • 1
  • 8
  • 21