Android Studio: Rename Package (Application Id)

April 8, 2019

Usually, you just need rename Application Id in module:app build.gradle file.

  • By default, the applicationId exactly matches the Java-style package name
  • The applicationId and package name are independent of each other (both does not need to be the same)
  • applicationId is used to identify your app in play store (e.g.
  • applicationId is used to identify your app in Android OS. You can rename the applicationId and compile another APK for installation, and Android OS shall treat it as a different application.
  • Java-style package name only matter to you as a developer.
android {
    defaultConfig {
        applicationId "com.luasoftware.luapass"
        minSdkVersion 16
        targetSdkVersion 28
        multiDexEnabled true
        versionCode 2
        versionName "1.0.1"

If you want to change Java-style package name, refer to this.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.