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?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Gero
  • 1,842
  • 25
  • 45

2 Answers2

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.

Gero
  • 1,842
  • 25
  • 45
  • 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. – Daniel Novak Jul 08 '12 at 23:55
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

Mohammed Azharuddin Shaikh
  • 41,633
  • 14
  • 96
  • 115
  • 1
    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. – Gero Jun 05 '12 at 12:59
  • http://developer.android.com/guide/market/expansion-files.html#Rules see IV point. – Mohammed Azharuddin Shaikh Jun 05 '12 at 13:03
  • 1
    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.. – Gero Jun 05 '12 at 13:09
  • Actually I am not able to see your Image(Blocked here) but soon will find the solution for you. – Mohammed Azharuddin Shaikh Jun 05 '12 at 13:12