Google Play Console: Package name of your Instant App APKs should be the same as your app's package name

耗尽温柔 提交于 2019-12-06 07:12:32

That zip file is the instant app. It can contain multiple APKs, one for each feature module, one for the base, and potentially some configuration APKs. It's ok if it only contains one APK. That will be the base.

Each of the APKs in the zip will have an AndroidManifest.xml, which you can view easily using APK Analyzer. They should each have a packageName, and they should all match, and that value is the package name of the instant app.

The installed app's package name is in the usual place, in that APK's AndroidManifest.xml.

The samples demonstrate the recommended way to structure your project, and that will produce and instant and an installed app with the same package name.

Check if your base module has a reference to the application module:

Like:

dependencies {
    application project(":installed")
    feature project(':app')
    feature project(":lite")
}

As stated in the docs:

By setting this dependency, the app's applicationId for each flavor is appplied to the base feature module, which in turn propagates to all of the features in the project. This expression ensures that the installable APK and Instant App APKs have the same applicationId. If this is not set, the applicationId defaults back to the one defined in the base feature module manifest.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!