Package Name & Application ID

applicationId

Get Define

1
BuildConfig.APPLICATION_ID

Some feature

Can switch suffix by add

1
2
3
4
5
6
7
8
9
10
android{
buildTypes{
release {
applicationIdSuffix ".release"
}
debug {
applicationIdSuffix ".debug"
}
}
}

in app’s build.gradle

packageName

Get define

1
getApplicationContext().getPackageName()

The value will be overrided with applicationId

Java package

The structure of a project, it’s ok that differ from applicationId.