- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想在 Google Play 上将我的应用作为普通应用和免安装应用分发,普通 apk 的大小低于 4 mb,因此它也可以是免安装应用,问题是我如何在这两种应用中分发应用“模式”,使用相同的 apk/app bundle
最佳答案
虽然您仍然可以使用已弃用的模型上传 instant-app-apks.zip,但相关文档已经消失,但您可能会在此 codelab 中找到一些残余内容,正如@Hassan Ibraheem 指出的那样,您的即时应用程序将需要 targetSandboxVersion=2
而您的安装应用程序则不需要。然后,您将构建两个独立的 Artifact ,installed-app.apk 和 instant-app-apks.zip,并将它们上传到各自的版本中。
但是,以下是现在将您的应用设置为支持即时应用的官方方式,同时将一个包用于常规应用和即时应用:
另请阅读 Android Developers Blog: A simpler experience for instant apps
要同时发布免安装应用和常规应用,请执行以下步骤:
If you have an existing instant app project that uses the deprecated feature plugin (com.android.feature), learn how to migrate your instant app to support Android App Bundles.
关于java - 如何为常规应用程序和即时应用程序分发相同的 apk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56060789/
我是一名优秀的程序员,十分优秀!