简体   繁体   中英

Instant app release error: targeting apk difference

I'm getting this problem when trying to release my instant app in google play console:

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.

I've searched for the solution and found this question: Google Play Console error - Non-upgradable to installed app .

I've debugged my apks (instant app artifact is .zip archive, so I've extracted it and analyzed apk stored there) with aapt tool and here is the differences I found:

Installed app output:

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

Instant app doesn't have such lines. Also there are two locales in installed app, which haven't appear in instant app: es-ES and id , and one density: 65545 .

All other content (including all permissions) is identical. I don't provide outputs, because they are too large, but if it's necessary, I can attach them.

The problem was with the line uses-gl-es: '0x20000' . It says that the application uses OpenGl library. The reason it's used is the dependency on play-services-maps library in installed app, but not in instant app. So, I just added this line in instant app dependencies:

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

and everything began working. Hope this will help somebody.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM