1

I have a problem uploading my APK to the Google Play store because of different package names.
What I've done is the following:

  • I uploaded the APK without any problems.
  • The app is not published yet; the state is announced with "design".
  • Now I renamed the Java packages.
  • I changed the "package" attribute in AndroidManifest.xml to the new name.
  • I changed the android:versionCode from 1 to 2.
  • Then I built the APK and tried to upload to Google Dev Console but it fails with the message that the package names are different.

Is there a way to solve this conflict? I know I could "reset" my Java project to the old name but I want to keep the new package name and publish this one to Google Play for all future versions.

Ryan
  • 1,972
  • 2
  • 23
  • 36
altralaser
  • 2,035
  • 5
  • 36
  • 55
  • 1
    You need to keep the same package name, if you change it you need to make a whole new app listing – tyczj Jul 06 '17 at 18:25

4 Answers4

0

You should also change the application id in your app.gradle : android {

defaultConfig {
    applicationId "type the new app Id here "

}
Karim
  • 322
  • 1
  • 10
0

Can you create a new APK with the updated names and then put the new APK in Google Play?

an3
  • 568
  • 1
  • 6
  • 14
0

If you haven't publish the app, just go ahead and create a new application under the new package.

Robert Estivill
  • 12,369
  • 8
  • 43
  • 64
  • Is this possible with the same application name? Do you mean a new store entry? Can I delete the current one? – altralaser Jul 06 '17 at 18:48
  • The name is just a string. The only thing that truly matters is the application package also know as the application id. I don't know if you can delete the old application 100% even if you haven't published yet. But you can have more than one store listings, even for the same binary if the application id is different. – Robert Estivill Jul 06 '17 at 18:51
  • Now I created a new store entry with the same title/app name and filled out all necessary fields. Then I clicked under "app versions". Here I get the message that I already have one unpublished version and I only have the possibility to click "edit version". I've no idea how to upload my new APK for my new store entry. – altralaser Jul 10 '17 at 17:20
  • Did you create it with a new release key and new package? Add some screenshots, is really hard to guess – Robert Estivill Jul 10 '17 at 18:43
0

don't forget to check the "Update references" checkbox when you rename your project.

Check this answer :

https://stackoverflow.com/a/3698165/8239508

Karim
  • 322
  • 1
  • 10