Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

[Android][3519] License Error when using Expansion Files
Started by martin.schreiber9 Aug 26 2019 09:19 AM

17 replies to this topic

Best Answer martin.schreiber9 , 01 September 2019 - 12:18 PM

New build seems to work.  :D

 

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

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

martin.schreiber9

[GLOBAL: userInfoPane.html]
martin.schreiber9
  • Observer

  • 17 posts
  • Corona SDK

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)


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,409 posts
  • Enterprise

Does this happen with 3490?



[TOPIC: post.html]
#3

DevLaTron

[GLOBAL: userInfoPane.html]
DevLaTron
  • Observer

  • 1 posts
  • Corona SDK

Does this happen with 3490?

 

(Co- Worker of OP posting)

 

The App in question was released as 32Bit versions multiple times before we tried switching to 64Bit recently.



[TOPIC: post.html]
#4

martin.schreiber9

[GLOBAL: userInfoPane.html]
martin.schreiber9
  • Observer

  • 17 posts
  • Corona SDK

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.



[TOPIC: post.html]
#5

coronauser111

[GLOBAL: userInfoPane.html]
coronauser111
  • Observer

  • 3 posts
  • Corona SDK

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



[TOPIC: post.html]
#6

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 981 posts
  • Corona Staff

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



[TOPIC: post.html]
#7

EvilGrogCorona

[GLOBAL: userInfoPane.html]
EvilGrogCorona
  • Observer

  • 1 posts
  • Corona SDK

No luck, the issue persists with 3520.

[TOPIC: post.html]
#8

martin.schreiber9

[GLOBAL: userInfoPane.html]
martin.schreiber9
  • Observer

  • 17 posts
  • Corona SDK

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.

 



[TOPIC: post.html]
#9

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 981 posts
  • Corona Staff

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.



[TOPIC: post.html]
#10

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 981 posts
  • Corona Staff

Please check with new build.

[TOPIC: post.html]
#11

martin.schreiber9

[GLOBAL: userInfoPane.html]
martin.schreiber9
  • Observer

  • 17 posts
  • Corona SDK

  Best Answer

New build seems to work.  :D

 

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



[TOPIC: post.html]
#12

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 981 posts
  • Corona Staff

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



[TOPIC: post.html]
#13

martin.schreiber9

[GLOBAL: userInfoPane.html]
martin.schreiber9
  • Observer

  • 17 posts
  • Corona SDK

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



[TOPIC: post.html]
#14

davidgmonical

[GLOBAL: userInfoPane.html]
davidgmonical
  • Enthusiast

  • 98 posts
  • Corona SDK

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."



[TOPIC: post.html]
#15

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 981 posts
  • Corona Staff

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.



[TOPIC: post.html]
#16

coronauser111

[GLOBAL: userInfoPane.html]
coronauser111
  • Observer

  • 3 posts
  • Corona SDK

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?



[TOPIC: post.html]
#17

martin.schreiber9

[GLOBAL: userInfoPane.html]
martin.schreiber9
  • Observer

  • 17 posts
  • Corona SDK

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. 



[TOPIC: post.html]
#18

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 981 posts
  • Corona Staff

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.




[topic_controls]
[/topic_controls]