Google Play控制台:Instant App APK的软件包名称应与您的应用的软件包名称相同 [英] Google Play Console: Package name of your Instant App APKs should be the same as your app's package name

查看:203
本文介绍了Google Play控制台:Instant App APK的软件包名称应与您的应用的软件包名称相同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试上传到使用Google Play控制台开发我的Instant App,但返回错误: Instant App APK的软件包名称应与您的应用的软件包名称相同.

I'm trying to upload into develop my Instant App with Google Play Console, but it returns an error: Package name of your Instant App APKs should be the same as your app's package name.

我也有功能调用 base apk instantApp 功能,每个人都有自己的gradle文件和 apk instantApp 实现了基本功能:

I have a feature call base, the apk and the instantApp feature too, everyone has its own gradle file and the apk and the instantApp implements the base feature:

dependencies { implementation project(':base') }

dependencies { implementation project(':base') }

我尝试使用可安装的应用程序的相同密钥,通过构建/生成签名的APK ..."发布.apk建筑,并创建一个压缩为zip的.apk文件.

I try to publish the .apk building by Build/Generate signed APK... with the same key of the installable App and it creates a file .apk compressed on zip

我不知道发生什么情况导致InstantApp和apk模块使用相同的基本功能,而且我不知道如何构建即时App APK

I don't know what happends cause the instantApp and the apk modules uses the same base feature and I don't find how I have to build the instant App APK

推荐答案

该zip文件是即时应用程序.它可以包含多个APK,每个功能模块一个,基础一个,可能还包含一些配置APK.如果只包含一个APK也可以.那将是基础.

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.

zip中的每个APK都有一个AndroidManifest.xml,您可以使用APK Analyzer轻松查看.它们每个都应具有packageName,并且都应匹配,并且该值是即时应用程序的软件包名称.

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.

已安装应用的程序包名称通常位于该APK的AndroidManifest.xml中.

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

示例演示了建议的构建项目结构的方法,这将产生和Instant和已安装的具有相同软件包名称的应用.

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.

这篇关于Google Play控制台:Instant App APK的软件包名称应与您的应用的软件包名称相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆