Sitemap

Member-only story

Android: rename the app package name

2 min readAug 16, 2024

Follow below steps to rename your Android package name

  1. Go to the file build.gradle(App) change the app name:
android {
namespace = "com.newName"
compileSdk = 34

defaultConfig {
applicationId = "com.newName"
minSdk = 31
}

...
}

2. Change folder to Android. Click on the three dots symbol(gear)

Go to Tree appearance -> uncheck “Compact Middle Packages”

3. Click on the folder outside of “com” and change the name, ex: “newName”

4. Build and run app.

KMP package App Name Change name of the app:

  1. KMP Project -> change file view to “Packages” -> right click on the package name -> rename
Android Studio -> packages view

2. KMP — change app name -> settings.gradle.kts(app) -> rootProject.name = “ai_app”
- Android -> strings.xml
- iOS -> Xcode change app name

Thank you for reading. Hope you learn something new.🙌🙏✌.

Don’t forget to clap 👏 50 times to support me and follow me for more such…

--

--

Andres Sandoval
Andres Sandoval

Written by Andres Sandoval

I'm a passionate Android Software Engineer with over 11 years of experience. andresand.github.io/andres-about-me/ buymeacoffee.com/andresand

No responses yet