expansion file runtime error

Hello,

Maybe a stupid question but we are unable to solve this with the information we can find on the web.

When we build an APK without an expansion file everything runs fine on the simulator and the device.

Since the app is almost 300 mb we need a Expansion file.

So in the build file we switch on the expansion file.

we end up with two files.

When we upload these files to a device. We get the following message

Runtime Error

Bad argument #1 to ‘open’ (string expected, got nil)

what does this mean? (it works when creating one single APK)

Does copying the apk and the expansion file to a device give you a working app or do you need to go through the play store?

Do you need a license key in the config.lua? if so were do we get it?

This is a bit of a mystery!

Thanks

someone?

Thx

See:  https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#expansion-files

Expansion files do require a licensing setup. Follow the links in that document to get your licensing setup correctly.

Rob

Thanks Rob,

These are exactly the steps we took.

But still it tells me that it wants to restart a download when starting the app.

Do we need the LUA code to check for a license?

The question is can you install a APK with OBB directly onto your device or do you need to go through the playstore?

We did install the APK and unpacked the OBB but it gives an “error not licensed” message.

someone?

Thx

See:  https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#expansion-files

Expansion files do require a licensing setup. Follow the links in that document to get your licensing setup correctly.

Rob

Thanks Rob,

These are exactly the steps we took.

But still it tells me that it wants to restart a download when starting the app.

Do we need the LUA code to check for a license?

The question is can you install a APK with OBB directly onto your device or do you need to go through the playstore?

We did install the APK and unpacked the OBB but it gives an “error not licensed” message.