Member-only story
Android: rename the app package name
Follow below steps to rename your Android package name
- 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:
- KMP Project -> change file view to “Packages” -> right click on the package name -> rename
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…