XAPK File Check Error - APK Extension Files

I use the demo of the extension files specified in sdks and place the obb file on the SD card in the following location:

/Android/obb/package-name/package-name/main.versioncode.package-name.obb 

But I get the following error:

XAPK file validation error


To generate .obb files .obb this is the following procedure:

1) copy all the images to a folder called main.versioncode.package-name.obb , and then write this file.

2) remove the .zip extension and put it in this /Android/obb/package-name/myobbfile.obb

Is this the right way to do this?

+5
source share
2 answers

The OBB file is an uncompressed zip file, so make sure you zip it without compression .

Each ZIP utility should have some kind of compression level option.

The following screenshot is an open 7-ZIP gui for Add to Archive with backlight, which I added to show where the Compression Level installed on the Store .

enter image description here


Another way to do this would be to use jobb

Using

The syntax for running jobb is as follows:

 jobb [-d <directory>][-o <filename>][-pn <package>][-pv <version>] \ [-k <key>][-ov][-dump <filename>][-v][-about] 

You can use the jobb tool to create an OBB file or extract the contents of an existing OBB. The following example command creates an OBB file from source files.

 $ jobb -d /temp/assets/ -o my-app-assets.obb -k secret-key -pn com.my.app.package -pv 11 

This example shows how to dump (extract) the contents of an existing OBB file:

 $ jobb -d /temp/obb-output/ -o my-app-assets.obb -k secret-key 
0
source

Here's how to do it.

1) You can put your images in any custom name folder that you want. e.g. myimages .

2) put all these images in a zip archive, after you added the renaming of this archive to main.versioncode.package-name.obb

3) Put this .obb file in the sdcar/Android/obb/package-name/main.versioncode.package-name.obb

Hope this helps

0
source

All Articles