Aurélien Gâteau

Changing the package name of your Android project

written on Sunday, May 27, 2018

So you want to change the Java package name of your Android project, but you've heard that you won't be able to push updates to Google Play if you do so? That's almost true.

I had this issue with Pixel Wheels. It was originally called Tiny Wheels, but I had to rename it. I initially kept the com.agateau.tinywheels package name, but I was not happy with that.

It turns out Google Play does not check the Java package name, but the Android application ID. The application ID for my game was, and still is, com.agateau.tinywheels.android (the .android suffix comes from libgdx, but this has been fixed now). As long as this ID stays the same (it is usually defined in the build.gradle of your game/application, Pixel Wheels application ID is defined here), you can rename your Java packages to whatever you want: Google Play will happily accept your apk as an update of the old one.

This post was tagged android, dev and pixelwheels