CoronaProvider.gameNetwork.corona.lu does not exist in archive

Hi!

I’m having some problems with the Game Network plugin. Whenever I try to load it (via require(“gameNetwork”)), my game crashes with a popup containing the following content:

Runtime Error

/Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:102:EROR:Could not load provider (corona) due to the following reason: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:835: module ‘CoronaProvider.gameNetwork.corona’ not found:resource(CoronaProvider.gameNetwork.corona.lu) does not exist in archive…

This is my build.setting file.

settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight" } }, plugins = { ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, }, android = { usesPermissions = { "com.android.vending.BILLING", "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_NETWORK\_STATE", }, googlePlayGamesAppId = "XXXXXXXX", }, }

 
I’ve tried to uninstall and reinstall Corona but it didn’t help. I’m using the latest release version.

Also, I’ve already checked the forum and found some similar threads:

https://forums.coronalabs.com/topic/38247-module-coronaprovidergamenetworkgoogle-not-found-gpgs/

and

https://forums.coronalabs.com/topic/36613-daily-build-1151-1152-resolved-ios-device-build-error-when-gamenetworkgoogle-plugin-is-being-fetched-and-iads-plugin-issue/

But none of them solved my problem.

Any tip on what is going on?

Thanks a lot in advance!

Br,

Cleverson

Sorry for bringing this up again.

I’ve been trying to solve this problem for the last days, but without success. Formatting my OS is the last thing I want to do to try to solve it. Any clue is very welcome!

I would try adding the below to your supportedPlatforms tables for the Google-specific plugins:

iphone=false, ["iphone-sim"]=false

Thanks a lot Alex, but, unfortunately it didn’t make any difference.

This is very weird.

I see from your log that you’re encountering this on Android, so as I misunderstood the problem, my suggestion wouldn’t help anyway.

Have you already tried this on other devices? What Corona build are you on? Does removing the plugins completely resolve the issue?

Yes, I’ve tried on other devices and the problem persists.

I’m using the latest public release (2015.2731).

If I remove the gameNetwork plugins, as well as the plugin calls, it works.

Hi @impossibleapps,

Based on the posts in this thread, I assume you’re attempting to use Google Play Game Services? If so, did you follow the plugin setup documentation exactly as shown?

https://docs.coronalabs.com/plugin/gameNetwork-google/index.html

Brent

Hi Brent!

Thanks for the link. I followed everything in that link.

I’m not sure if that will help, but I captured some logs with logcat. It seems the apk is being built without all dependencies, namely the gameNetwork (‘CoronaProvider.gameNetwork.corona.LuaLoader’).

V/Corona(19247): \> Class.forName: plugin.fuse.LuaLoader I/ActivityManager(547): Displayed com.impossibleapps.tc/com.ansca.corona.CoronaActivity: +589ms W/linker(19247): liblicensing.so has text relocations. This is wasting memory and prevents security hardening. Please fix. V/Corona(19247): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona(19247): Loading via reflection: CoronaProvider.licensing.google.LuaLoader W/linker(19247): libgameNetwork.so has text relocations. This is wasting memory and prevents security hardening. Please fix. V/Corona(19247): \> Class.forName: CoronaProvider.gameNetwork.corona.LuaLoader V/Corona(19247): WARNING: Could not load 'CoronaProvider.gameNetwork.corona.LuaLoader' W/System.err(19247): java.lang.ClassNotFoundException: CoronaProvider.gameNetwork.corona.LuaLoader W/System.err(19247): at java.lang.Class.classForName(Native Method) W/System.err(19247): at java.lang.Class.forName(Class.java:309) W/System.err(19247): at java.lang.Class.forName(Class.java:273) W/System.err(19247): at com.ansca.corona.NativeToJavaBridge.callLoadClass(NativeToJavaBridge.java:311) W/System.err(19247): at com.ansca.corona.JavaToNativeShim.nativeResize(Native Method) W/System.err(19247): at com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:372) W/System.err(19247): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:374) W/System.err(19247): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1612) W/System.err(19247): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378) W/System.err(19247): Caused by: java.lang.ClassNotFoundException: Didn't find class "CoronaProvider.gameNetwork.corona.LuaLoader" on path: DexPathList[[zip file "/data/app/com.impossibleapps.tc-1/base.apk"],nativeLibraryDirectories=[/data/app/com.impossibleapps.tc-1/lib/arm, /vendor/lib, /system/lib]] W/System.err(19247): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) W/System.err(19247): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) W/System.err(19247): at java.lang.ClassLoader.loadClass(ClassLoader.java:469) W/System.err(19247): ... 9 more W/System.err(19247): Suppressed: java.lang.ClassNotFoundException: CoronaProvider.gameNetwork.corona.LuaLoader W/System.err(19247): at java.lang.Class.classForName(Native Method) W/System.err(19247): at java.lang.BootClassLoader.findClass(ClassLoader.java:781) W/System.err(19247): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) W/System.err(19247): at java.lang.ClassLoader.loadClass(ClassLoader.java:504) W/System.err(19247): ... 10 more W/System.err(19247): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available I/Corona(19247): Runtime error I/Corona(19247): /Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:102: ERROR: Could not load provider (corona) due to the following reason: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:835: module 'CoronaProvider.gameNetwork.corona' not found:resource (CoronaProvider.gameNetwork.corona.lu) does not exist in archive I/Corona(19247): no field package.preload['CoronaProvider.gameNetwork.corona'] I/Corona(19247): no file '(null)/CoronaProvider/gameNetwork/corona.lua' I/Corona(19247): no file '(null)/CoronaProvider/gameNetwork/corona.lua' I/Corona(19247): no file '/data/app/com.impossibleapps.tc-1/lib/arm/libCoronaProvider/gameNetwork/corona.so' I/Corona(19247): no file './CoronaProvider/gameNetwork/corona.so' I/Corona(19247): no file '(null)/CoronaProvider/gameNetwork/corona.so' I/Corona(19247): no file '/data/app/com.impossibleapps.tc-1/lib/arm/libCoronaProvider.so' I/Corona(19247): no file './CoronaProvider.so' I/Corona(19247): no file '(null)/CoronaProvider.so' I/Corona(19247): no file '/data/app/com.impossibleapps.tc-1/lib/arm/libCoronaProvider.gameNetwork.coron

Br,

Cleverson

Same here, build 2015.2777. Any updates?

Cheers!

Hi lpalmieri,

No, nothing. I still have this problem. I decided to work on other parts of the game and wait for a build that eventually fixes the problem.

I will spend a little bit more time investigating the issue and let you know if I can fix it.

Br,

Cleverson

Are you specifying “Google Play” for “Target App Store” when you attempt to build?

Brent

Hey Cleverson,
 
Solved here.

In my case I was calling this:

gameNetwork.init( “gamecenter”, callback )

instead of this:

gameNetwork.init( “google”, callback )
 
so if you’re using Google Play game services try:
gameNetwork.init( “google”, callback )

Hope this helps!

Cheers

Hi lpalmieri,

 

You made my day!

Your tip made me look at my initialization and, in my case I was not passing gamecenter as you did, but, the problem is that I was passing a reference to a nil variable that I thought was initialized. I fixed this and everything worked like a charm.

Thanks a lot!

 

Br,

Cleverson

Sorry for bringing this up again.

I’ve been trying to solve this problem for the last days, but without success. Formatting my OS is the last thing I want to do to try to solve it. Any clue is very welcome!

I would try adding the below to your supportedPlatforms tables for the Google-specific plugins:

iphone=false, ["iphone-sim"]=false

Thanks a lot Alex, but, unfortunately it didn’t make any difference.

This is very weird.

I see from your log that you’re encountering this on Android, so as I misunderstood the problem, my suggestion wouldn’t help anyway.

Have you already tried this on other devices? What Corona build are you on? Does removing the plugins completely resolve the issue?

Yes, I’ve tried on other devices and the problem persists.

I’m using the latest public release (2015.2731).

If I remove the gameNetwork plugins, as well as the plugin calls, it works.

Hi @impossibleapps,

Based on the posts in this thread, I assume you’re attempting to use Google Play Game Services? If so, did you follow the plugin setup documentation exactly as shown?

https://docs.coronalabs.com/plugin/gameNetwork-google/index.html

Brent

Hi Brent!

Thanks for the link. I followed everything in that link.

I’m not sure if that will help, but I captured some logs with logcat. It seems the apk is being built without all dependencies, namely the gameNetwork (‘CoronaProvider.gameNetwork.corona.LuaLoader’).

V/Corona(19247): \> Class.forName: plugin.fuse.LuaLoader I/ActivityManager(547): Displayed com.impossibleapps.tc/com.ansca.corona.CoronaActivity: +589ms W/linker(19247): liblicensing.so has text relocations. This is wasting memory and prevents security hardening. Please fix. V/Corona(19247): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona(19247): Loading via reflection: CoronaProvider.licensing.google.LuaLoader W/linker(19247): libgameNetwork.so has text relocations. This is wasting memory and prevents security hardening. Please fix. V/Corona(19247): \> Class.forName: CoronaProvider.gameNetwork.corona.LuaLoader V/Corona(19247): WARNING: Could not load 'CoronaProvider.gameNetwork.corona.LuaLoader' W/System.err(19247): java.lang.ClassNotFoundException: CoronaProvider.gameNetwork.corona.LuaLoader W/System.err(19247): at java.lang.Class.classForName(Native Method) W/System.err(19247): at java.lang.Class.forName(Class.java:309) W/System.err(19247): at java.lang.Class.forName(Class.java:273) W/System.err(19247): at com.ansca.corona.NativeToJavaBridge.callLoadClass(NativeToJavaBridge.java:311) W/System.err(19247): at com.ansca.corona.JavaToNativeShim.nativeResize(Native Method) W/System.err(19247): at com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:372) W/System.err(19247): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:374) W/System.err(19247): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1612) W/System.err(19247): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378) W/System.err(19247): Caused by: java.lang.ClassNotFoundException: Didn't find class "CoronaProvider.gameNetwork.corona.LuaLoader" on path: DexPathList[[zip file "/data/app/com.impossibleapps.tc-1/base.apk"],nativeLibraryDirectories=[/data/app/com.impossibleapps.tc-1/lib/arm, /vendor/lib, /system/lib]] W/System.err(19247): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) W/System.err(19247): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) W/System.err(19247): at java.lang.ClassLoader.loadClass(ClassLoader.java:469) W/System.err(19247): ... 9 more W/System.err(19247): Suppressed: java.lang.ClassNotFoundException: CoronaProvider.gameNetwork.corona.LuaLoader W/System.err(19247): at java.lang.Class.classForName(Native Method) W/System.err(19247): at java.lang.BootClassLoader.findClass(ClassLoader.java:781) W/System.err(19247): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) W/System.err(19247): at java.lang.ClassLoader.loadClass(ClassLoader.java:504) W/System.err(19247): ... 10 more W/System.err(19247): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available I/Corona(19247): Runtime error I/Corona(19247): /Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:102: ERROR: Could not load provider (corona) due to the following reason: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:835: module 'CoronaProvider.gameNetwork.corona' not found:resource (CoronaProvider.gameNetwork.corona.lu) does not exist in archive I/Corona(19247): no field package.preload['CoronaProvider.gameNetwork.corona'] I/Corona(19247): no file '(null)/CoronaProvider/gameNetwork/corona.lua' I/Corona(19247): no file '(null)/CoronaProvider/gameNetwork/corona.lua' I/Corona(19247): no file '/data/app/com.impossibleapps.tc-1/lib/arm/libCoronaProvider/gameNetwork/corona.so' I/Corona(19247): no file './CoronaProvider/gameNetwork/corona.so' I/Corona(19247): no file '(null)/CoronaProvider/gameNetwork/corona.so' I/Corona(19247): no file '/data/app/com.impossibleapps.tc-1/lib/arm/libCoronaProvider.so' I/Corona(19247): no file './CoronaProvider.so' I/Corona(19247): no file '(null)/CoronaProvider.so' I/Corona(19247): no file '/data/app/com.impossibleapps.tc-1/lib/arm/libCoronaProvider.gameNetwork.coron

Br,

Cleverson