Bundle ID在安卓中是什么意思?它的使用是什么?两个安卓应用程序可以具有相同的捆绑包ID吗?如果是,则为什么?如果不是,则为什么?
Bundle ID在安卓中是什么意思?它的使用是什么?两个安卓应用程序可以具有相同的捆绑包ID吗?如果是,则为什么?如果不是,则为什么?
https://play.google.com/store/apps/details?id = com.yourdomain.appname
您不能为多个应用程序分配相同的BundleId。这是因为Google Play使用您的BundleID作为应用程序的唯一标识符。
因此,您可以通过编辑应用程序级别gradle中的applicationId属性来配置Android Studio中的BundleID,如下所示:
android {
compileSdkVersion 27
defaultConfig {
//Edit the applicationId for changing your BundeID.
applicationId "com.yourdomainname.yourappname"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}