即时应用发布错误:定位apk差异

问题描述 投票:1回答:1

我试图在谷歌播放控制台中发布我的即时应用程序时遇到此问题:

PROBLEM

Some users of this Instant App APKs will not be eligible for any of the APKs in your installed app.

RESOLUTION

Ensure that the targeting of your Instant App APKs matches the targeting of your APKs.

我搜索了解决方案,发现了这个问题:Google Play Console error - Non-upgradable to installed app

我调试了我的apks(即时应用程序工件是.zip存档,所以我已经提取它并分析存储在那里的apk)用aapt工具,这里是我找到的差异:

已安装的应用输出:

...
application-label-es-ES:’app-name’
...
application-icon-65535:'res/mipmap-xxxhdpi-v4/ic_launcher.png’
...
 uses-gl-es: '0x20000'
...

即时应用程序没有这样的行。安装的应用程序中还有两个区域设置,它们没有出现在即时应用程序中:es-ESid,以及一个密度:65545

所有其他内容(包括所有权限)都是相同的。我不提供输出,因为它们太大,但如果有必要,我可以附加它们。

android android-instant-apps google-play-console
1个回答
1
投票

问题在于uses-gl-es: '0x20000'线。它说该应用程序使用OpenGl库。使用它的原因是在已安装的应用程序中依赖于play-services-maps库,但在即时应用程序中则不然。所以,我刚刚在即时应用程序依赖项中添加了这一行:

com.google.android.gms:play-services-maps:16.0.0

一切都开始了。希望这会对某人有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.