[Android][3519] License Error when using Expansion Files

Hi,

we’re experiencing crashes related to the Google licensing of expansion files since 2019.3517. Retested today with 3519, same error. 

 Crashlog:

08-26 18:54:44.015 7320 7348 V Corona : \> Class.forName: network.LuaLoader 08-26 18:54:44.017 7320 7348 V Corona : \< Class.forName: network.LuaLoader 08-26 18:54:44.021 7320 7348 V Corona : Loading via reflection: network.LuaLoader 08-26 18:54:44.131 7320 7348 I Corona : Platform: TA-1032 / Unknown / 8.1.0 / Mali-T720 / OpenGL ES 3.1 v1.r18p0-00cet0.78299f586f7919862c85cb764ae43fad / 2019.3519 / English | GB | en\_GB | en 08-26 18:54:44.236 7320 7348 V Corona : \> Class.forName: shared.google.play.services.base.LuaLoader 08-26 18:54:44.237 7320 7348 V Corona : \< Class.forName: shared.google.play.services.base.LuaLoader 08-26 18:54:44.237 7320 7348 V Corona : Loading via reflection: shared.google.play.services.base.LuaLoader 08-26 18:54:44.279 7320 7348 V Corona : \> Class.forName: \_CoronaSetup.LuaLoader 08-26 18:54:44.305 7320 7348 V Corona : \> Class.forName: CoronaProvider.licensing.google.LuaLoader 08-26 18:54:44.306 7320 7348 V Corona : \< Class.forName: CoronaProvider.licensing.google.LuaLoader 08-26 18:54:44.400 7320 7348 V Corona : Loading via reflection: CoronaProvider.licensing.google.LuaLoader 08-26 18:54:45.091 7320 7348 I LicenseChecker: Binding to licensing service. 08-26 18:54:46.835 7320 7320 I LicenseChecker: Calling checkLicense on service for com.myapp 08-26 18:54:46.836 7320 7320 I LicenseChecker: Start monitoring timeout. 08-26 18:54:50.300 7320 7374 I LicenseChecker: Received response. 08-26 18:54:50.300 7320 7374 I LicenseChecker: Clearing timeout. 08-26 18:54:50.547 7320 7374 W System.err: java.net.MalformedURLException: no protocol: ?VT=9223372036854775807&FILE\_URL1=https://play.googleapis.com/download/by-token/download?token%3DAOTCm0QWcBQdlh0iTohkaM5V-ZmLixlVA-LFkhBxi1CdPizAdw0Nd2OoB\_6IrE1mrfoD6M9M8Zc\_YsGcgm53IjiOSGMWlVNTGVl7ffybyBneHcje8yL1-FnWKCBZ4Beh9bVKcWijDV1IkrxrDHAI40yKKn6Tv8E9tA7wq60j2R-6SfC2IJ-1ZzezxvG1K-Nv5Iv1YmdQX8GsoLQ6zeBKYE5vlePZYoOWNqvi232LIfS2NitK4JwlEVn61T8vWTN1bEesFlppepNlUfQjrqnANk6oAh4rEzp7yzG9c9l5eV1G\_6718DgJguOYgj2pokYUKhRK8J8-Q3gEbBb7JpJ97Sx6XAV-wFvMcpYQ1bd0%26cpn%3DzCB-7FQ7vOD7giXq&FILE\_NAME1=main.19105.com.myapp.obb&FILE\_SIZE1=247773789 08-26 18:54:50.569 7320 7374 W System.err: at java.net.URL.\<init\>(URL.java:590) 08-26 18:54:50.569 7320 7374 W System.err: at java.net.URL.\<init\>(URL.java:487) 08-26 18:54:50.569 7320 7374 W System.err: at java.net.URL.\<init\>(URL.java:436) 08-26 18:54:50.569 7320 7374 W System.err: at com.google.android.vending.licensing.Policy.decodeExtras(Policy.java:185) 08-26 18:54:50.569 7320 7374 W System.err: at com.google.android.vending.licensing.APKExpansionPolicy.processServerResponse(APKExpansionPolicy.java:136) 08-26 18:54:50.569 7320 7374 W System.err: at com.google.android.vending.licensing.LicenseValidator.handleResponse(LicenseValidator.java:207) 08-26 18:54:50.569 7320 7374 W System.err: at com.google.android.vending.licensing.LicenseValidator.verify(LicenseValidator.java:167) 08-26 18:54:50.569 7320 7374 W System.err: at com.google.android.vending.licensing.LicenseChecker$ResultListener$2.run(LicenseChecker.java:229) 08-26 18:54:50.569 7320 7374 W System.err: at android.os.Handler.handleCallback(Handler.java:790) 08-26 18:54:50.569 7320 7374 W System.err: at android.os.Handler.dispatchMessage(Handler.java:99) 08-26 18:54:50.569 7320 7374 W System.err: at android.os.Looper.loop(Looper.java:164) 08-26 18:54:50.569 7320 7374 W System.err: at android.os.HandlerThread.run(HandlerThread.java:65)

Does this happen with 3490?

It definitly worked with 2019.3512. Can’t say for sure for 3515, as we got other errors on that version. But his error was not one of them.

I am having the same problem with build 3517. Error with Google Play expansion files. 

Errors on device:

“Press restart to download resource files 0.00/0MB”

[Restart Download] button

when pressing button, receive alert box:

Error:

Licensed

[ok] button

Can you try with 3520? I tried fixing the issue there.

No luck, the issue persists with 3520.

Sadly that didn’t help.

Output with 3520:

09-01 12:06:17.664 24008 24036 V Corona : \> Class.forName: network.LuaLoader 09-01 12:06:17.665 24008 24036 V Corona : \< Class.forName: network.LuaLoader 09-01 12:06:17.666 24008 24036 V Corona : Loading via reflection: network.LuaLoader 09-01 12:06:17.767 24008 24036 I Corona : Platform: TA-1032 / Unknown / 8.1.0 / Mali-T720 / OpenGL ES 3.1 v1.r18p0-00cet0.78299f586f7919862c85cb764ae43fad / 2019.3520 / English | GB | en\_GB | en 09-01 12:06:17.927 24008 24036 V Corona : \> Class.forName: shared.google.play.services.base.LuaLoader 09-01 12:06:17.928 24008 24036 V Corona : \< Class.forName: shared.google.play.services.base.LuaLoader 09-01 12:06:17.928 24008 24036 V Corona : Loading via reflection: shared.google.play.services.base.LuaLoader 09-01 12:06:17.987 24008 24036 V Corona : \> Class.forName: \_CoronaSetup.LuaLoader 09-01 12:06:18.013 24008 24036 V Corona : \> Class.forName: CoronaProvider.licensing.google.LuaLoader 09-01 12:06:18.013 24008 24036 V Corona : \< Class.forName: CoronaProvider.licensing.google.LuaLoader 09-01 12:06:18.017 24008 24036 V Corona : Loading via reflection: CoronaProvider.licensing.google.LuaLoader 09-01 12:06:18.102 24008 24036 I LicenseChecker: Binding to licensing service. 09-01 12:06:18.527 24008 24008 I LicenseChecker: Calling checkLicense on service for com.XXX.YYY 09-01 12:06:18.528 24008 24008 I LicenseChecker: Start monitoring timeout. 09-01 12:06:19.449 24008 24058 I LicenseChecker: Received response. 09-01 12:06:19.449 24008 24058 I LicenseChecker: Clearing timeout. 09-01 12:06:19.456 24008 24058 W System.err: java.net.MalformedURLException: no protocol: ?VT=9223372036854775807&FILE\_URL1=https://play.googleapis.com/download/by-token/download?token%3DAOTCm0REXPbOLZsCNi0Xf201luMVelHHgei2E02OX0rRSQnpYvFC-aoO03Wimbz\_48DJVpvkMVCWtwlNjNPYeP83GCu0ltLWmOjjIIAf96ZzX8m8ZanzBDVZdd4QrBwDpMYgqjaLXx7unVLr8MqwIRy\_Jof39GZ\_hUw3YhKfAzwghLfIKHM83wARsll84oSlM4LPLfqt2EX5y009RiC3Cz0nJlPPSiTISj3mfZbL0ImbWYV7-RkVcFr0dVJ5FpEYBkgHz9fgXbkEbS8gVGYjkgZqNuKgjhbpsXzKr\_P2Kswj8u4587ZmZEmRHKhpsyscZBurmFobbLus01MCf8M39cDggC6t3RAOORO-wjHS%26cpn%3DHCzk2i5rcXF8f3Rm&FILE\_NAME1=main.19106.com.XXX.YYY.obb&FILE\_SIZE1=247773789 09-01 12:06:19.458 24008 24058 W System.err: at java.net.URL.\<init\>(URL.java:590) 09-01 12:06:19.459 24008 24058 W System.err: at java.net.URL.\<init\>(URL.java:487) 09-01 12:06:19.459 24008 24058 W System.err: at java.net.URL.\<init\>(URL.java:436) 09-01 12:06:19.459 24008 24058 W System.err: at com.google.android.vending.licensing.Policy.decodeExtras(Policy.java:185) 09-01 12:06:19.459 24008 24058 W System.err: at com.google.android.vending.licensing.APKExpansionPolicy.processServerResponse(APKExpansionPolicy.java:136) 09-01 12:06:19.459 24008 24058 W System.err: at com.google.android.vending.licensing.LicenseValidator.handleResponse(LicenseValidator.java:207) 09-01 12:06:19.459 24008 24058 W System.err: at com.google.android.vending.licensing.LicenseValidator.verify(LicenseValidator.java:167) 09-01 12:06:19.459 24008 24058 W System.err: at com.google.android.vending.licensing.LicenseChecker$ResultListener$2.run(LicenseChecker.java:229) 09-01 12:06:19.459 24008 24058 W System.err: at android.os.Handler.handleCallback(Handler.java:790) 09-01 12:06:19.459 24008 24058 W System.err: at android.os.Handler.dispatchMessage(Handler.java:99) 09-01 12:06:19.459 24008 24058 W System.err: at android.os.Looper.loop(Looper.java:164) 09-01 12:06:19.459 24008 24058 W System.err: at android.os.HandlerThread.run(HandlerThread.java:65) 09-01 12:06:19.500 24008 24036 I Corona : WARNING: file 'android.app.icon://' does not contain a valid image

Please tell me, if I can provide additional Infos to narrow it down.

Thanks so much! New build should be up, fixing this issue. Sorry, I don’t have a good setup to test expansion files  :( I hope this will do it. I was able to track source of the issue and fix it. Hopefully that would be it.

 

New build would be up in 2-3 hours.

Please check with new build.

New build seems to work.  :smiley:

App starts and there are no more license errors in the log.

Thanks so much. Error was actually in parsing the expansion file parameters. Does expansion work? Like data from it is loaded fine etc?

I can definitly load resources from the expansion file. To say if everything works will need some testing time. 

Unfortunately, I’m still seeing a licensing error.

I have the expansion setup the same way (same config.lua and build.settings) as before when it was working (now I’m using Corona 3521).

The app is currently on the internal track with an expansion file.

Here’s the log https://pastebin.com/rns67MnY

And the error I’m getting is a popup on my Android (Galaxy S3) saying “Unable to establish connection to Google’s Licensing servers.”

Do you see it on more that one device? It seems like console contains multiple google authentication errors. Try logging in/out google account and see if it still works.

Still receiving an error with licensing, but different error now. 

In build 3517 the error reported in the device was Error: Licensed

In build 3521 the error now reads: Error: Not Licensed

​This is an application that was using expansion file with no errors before updating to use 64bit.

Do the expansion files work for anyone in build 3522 or up?

3521 works for us. We’re in a test phase right now, so we will not be able to test the newer versions for a few weeks. 

[member=‘coronauser111’], can you please provide full log? Also, how are you testing the expansion? It has to be tested when downloaded from the Google Play Store, because only place that have this error says is when Google Play Store returns specifically that you don’t have the license for the app.