Change Package name
If you want to change the package name, follow these steps
1 - Open /android/app/build.gradle
Change File name
android {
//TODO: 1 Change package name
namespace = "<REPLACE WITH YOUR PACKAGE NAME>"
compileSdk = 34
ndkVersion ="25.1.8937393"
defaultConfig {
// TODO 2 this is the package name
applicationId "<REPLACE WITH YOUR PACKAGE NAME>"
minSdkVersion 21
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
3 - Open /android/app/src/main/kotlin/<Your Package name folders>/MainActivity.kt Change to your Package name
Last updated