发布相同的应用程序但有两个版本
Publishing same app but two versions
您好,我希望在 Play 上发布 2 个类似的应用程序,但一个带有商业广告,另一个用于赚钱。我该如何处理?
在 gradle 中更改 applicationId 就足够了吗?由于那个游戏商店不允许相同的包名......
请给我任何提示,告诉我如何在 Studio 中安排它以及如何发布它。
flavors 解决了这个问题。我认为 link 会有所帮助。
您可以在 build.gradle
文件中定义口味。
apply plugin: 'com.android.application'
android {
defaultConfig { ... }
signingConfigs { ... }
buildTypes { ... }
productFlavors {
demo {
applicationId "com.buildsystemexample.app.demo"
versionName "1.0-demo"
}
full {
applicationId "com.buildsystemexample.app.full"
versionName "1.0-full"
}
}
}
更多 info 在这里。
您好,我希望在 Play 上发布 2 个类似的应用程序,但一个带有商业广告,另一个用于赚钱。我该如何处理? 在 gradle 中更改 applicationId 就足够了吗?由于那个游戏商店不允许相同的包名...... 请给我任何提示,告诉我如何在 Studio 中安排它以及如何发布它。
flavors 解决了这个问题。我认为 link 会有所帮助。
您可以在 build.gradle
文件中定义口味。
apply plugin: 'com.android.application'
android {
defaultConfig { ... }
signingConfigs { ... }
buildTypes { ... }
productFlavors {
demo {
applicationId "com.buildsystemexample.app.demo"
versionName "1.0-demo"
}
full {
applicationId "com.buildsystemexample.app.full"
versionName "1.0-full"
}
}
}
更多 info 在这里。