Reuse expansion files on android developer console
Asked Answered
G

2

9

How do I re-use an expansion file when updating an APK in developer console?

When I upload a new apk with a higher versionCode, I can't select a previously used main expansion file...

And if I upload the same expansion file again with the new apk, it get assigned a new expansion-version, which isn't the expected behavior.

APK Expansion Files documentation:

...the Developer Console allows you to re-use an uploaded expansion file with a new APK, the expansion file's name does not change—it retains the version applied to it when you first uploaded the file.

How can I achieve this on developer console?

Garretson answered 5/6, 2012 at 12:41 Comment(0)
G
13

I got an answer from Google Play Developer Support.

The behavior you are describing is intended. You can only reuse OBBs that were associated with APKs that have been published. Neither APK has ever been published, so we don't give the option to reuse the OBBs he's uploaded so far.

So, it seems that i can't test my app's obb files behaviour when updating, without actually publishing a previous version of the app.

Garretson answered 12/6, 2012 at 23:32 Comment(1)
One of the things that should be mentioned in the docs. I wasted 2 hours searching why I can't reuse my expansion files.Facial
B
3

If you observe the name format [main|patch].<expansion-version>.<package-name>.obb having expansion-version which need to be same when you download expansion file manually through Google Downloader Activity.

Sometime it happens that your expansion file is remain same and you have only modify the apk so you need not to create again expansion file with new name, you have to keep the version code same and map the same code in Downloader Activity and resue it.

http://developer.android.com/guide/market/expansion-files.html#Download

Bercy answered 5/6, 2012 at 12:49 Comment(4)
If i want to update my app, i MUST increase the versionCode, and if an expansion file IS NOT attached to that new APK in Developer Console, when someone runs the new app, the licensing library says that the expansion files can not be found. So, i MUST to pick an expansion file when updating my apk.Garretson
developer.android.com/guide/market/expansion-files.html#Rules see IV point.Bercy
Thanks! The problem here is that the console (image) dont allow me to pick the previous expansion file (The dropdown box is empty)... And if re-upload the same expansion file, it gets assigned a new expansion-version... So, something is not working as expected..Garretson
Actually I am not able to see your Image(Blocked here) but soon will find the solution for you.Bercy

© 2022 - 2024 — McMap. All rights reserved.