Android Google play: new app, use the previous obb. Does not work

I have successfully published an app along with obb for google play.

Ob was named main.1.com.myapp.obb

, it worked fine.

Then I did some bug fixes in the app. The Ob has not changed. When downloading apk with version code 2 of my app and in google play console it asked for extension file. I could upload a new obb or use main.1.com.myapp.obb

. I chose the latter.

After downloading the new version of the app, I can see that the app is working except for the parts that need resources in the obb.

My solution for now . I downloaded the version 3 code of the app and a copy of the original obb named main.3.com.myapp.obb

. (works fine)

However, the obb file is large and it would be better not to reload it again.

What should I do? Should I name the file differently?

Notes . I've tried this more than once, I'm in version 14 code and always had a problem. I have carefully read the google documentation on APK file extension

Feel free to postpone this question if it doesn't belong here

+3


source to share


1 answer


The answer was in the documentation you read, but it's easy to miss.

File name format

... Regardless of the file type, Google Play treats them as opaque binary blobs and renames the files as follows:

[main|patch].<expansion-version>.<package-name>.obb

      

There are three components to this diagram:
...
<expansion-version>


This is an integer that corresponds to the APK version code that the extension is first associated with (it corresponds to the value of the application android:versionCode

).

The "first" is underlined because although the developer console allows you to reuse an uploaded extension file with a new APK, the name of the extension file does not change β€” it retains the version applied to it when the file was first loaded.



In other words, version 2 of your application was needed to load the file using the filename main.1.com.myapp.obb

. It is not renamed when the app is updated. It's sad if you automatically update your version code with the CI server, but that's how it goes.

0


source







All Articles