Google Runtime Error on Device

I copied the code to the device and I get this runtime error

/Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua 102: ERROR: Could not load provider (Game Center) due to the following reason:  /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:815: module "CoronaProvider.gameNetwork.gamecenter’ not found:resource (CoronaProvider.gameNetwork.gamecenter.lu)does not exist in archive no field package.preload[‘CoronaProvider.gameNetwork.gamecenter’] no file (null)/CoronaProvider…

Does anyone know what this means?   The message above is just the first part it is pretty long.

Thanks

Lori

Can you post your build.settings file please?

Thanks

The cause of this is that Game Center is iOS specific. You cannot include that plugin on Android builds. There is a “supportedPlatform” parameter that lets you control which OS’s to load a plugin for. This is why Danny wants to see your build.settings.

Rob

Thank you Danny and Rob.  I removed that code and the error message stopped occurring.

Have a great day.

Loir

Can you post your build.settings file please?

Thanks

The cause of this is that Game Center is iOS specific. You cannot include that plugin on Android builds. There is a “supportedPlatform” parameter that lets you control which OS’s to load a plugin for. This is why Danny wants to see your build.settings.

Rob

Thank you Danny and Rob.  I removed that code and the error message stopped occurring.

Have a great day.

Loir

Hi Rob Miracle,

I got similar error "Runtime Error /Users/Jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:102:ERROR:Could not load provider(Game Center) due to the following reason: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:815:module

‘Corona Provider.gameNetwork.gamecenter’ not found: resource (CoronaProvider.gameNetwork.gamecenter.lu) does not exist in archive no field package.preload[‘CoronaProvider.gameNetwork.gamecenter’] no file ‘(null)/CoronaProvider.gameNetwork.gamecenter’] no file ‘(null)/CoronaProvider/ gameNetwork/gamecenter.lua’ no file ‘(null)/CoronaProvider/ gameNetwork/gamecenter.lua’ no file (null/CoronaProvider/ gameNetwork/gamecenter.so’ no file ‘/data/app-lib/com.Rahab.KKPhonics-1/libCoronaProvider.so’ no file’./CoronaProvider.so’ no file’./CoronaProvider.so’ no file’(null)/CoronaProvider.so’ no file’/data/app-lib/ com.Rahab.KKPhonics-1/libCoronaProvider.gameNetwork.gamecenter.so’ no file’./ CoronaProvider.gameNetwork.gamecenter.so’ no file’(null)/ CoronaProvider.gameNetwork.gamecenter.so’.

the build.settings of mine is like below

settings ={    plugins =     {         ["CoronaProvider.gameNetwork.google"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { android=true }         },     },   android =          {   googlePlayGamesAppId = "386305178xxx",   versionCode = "1",         versionName = "1.0",         },                  androidPermissions=         {         "android.permission.INTERNET",             "android.permission.ACCESS\_NETWORK\_STATE",             "android.permission.READ\_PHONE\_STATE",         },         orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", } }, content = { width = 320, height = 480,  scale = "letterBox", fps = 30, }, }

You can’t be getting the same error, Lori was trying to use Apple’s Game Center on Android builds which doesn’t work. You appear to be trying to use Google Play Game Services (GPGS) to do leaderboards on Android. I suspect you’re getting a similar but actually different error.

For us to help you we are going to need to you edit  your previous post and use code formatting for those different blocks of code. I would suggest taking out all the code the post. Select it in your editor do a CTRL-C or CMD-C on a Mac, then click the blue <> button in the editing tools (bold, italic, etc.) and then paste the code in with CTRL-V or CMD-V in the window that pops up. This will preserve your indentions for the code. Do each block of code in separate code blocks.

Then copy and paste the entire error you’re getting from your device’s console log. If you’re using build 2830 or later, and your device is tethered and you’re letting Corona SDK install the app to your device, you can copy/paste the error from our console window. If not you will need to use adb logcat or monitor from the command line to capture this. Please see:
 

http://docs.coronalabs.com/guide/basics/debugging/index.html

If you need help on capturing the device’s console log.

Rob

Hi Rob Miracle,

I got similar error "Runtime Error /Users/Jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:102:ERROR:Could not load provider(Game Center) due to the following reason: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:815:module

‘Corona Provider.gameNetwork.gamecenter’ not found: resource (CoronaProvider.gameNetwork.gamecenter.lu) does not exist in archive no field package.preload[‘CoronaProvider.gameNetwork.gamecenter’] no file ‘(null)/CoronaProvider.gameNetwork.gamecenter’] no file ‘(null)/CoronaProvider/ gameNetwork/gamecenter.lua’ no file ‘(null)/CoronaProvider/ gameNetwork/gamecenter.lua’ no file (null/CoronaProvider/ gameNetwork/gamecenter.so’ no file ‘/data/app-lib/com.Rahab.KKPhonics-1/libCoronaProvider.so’ no file’./CoronaProvider.so’ no file’./CoronaProvider.so’ no file’(null)/CoronaProvider.so’ no file’/data/app-lib/ com.Rahab.KKPhonics-1/libCoronaProvider.gameNetwork.gamecenter.so’ no file’./ CoronaProvider.gameNetwork.gamecenter.so’ no file’(null)/ CoronaProvider.gameNetwork.gamecenter.so’.

the build.settings of mine is like below

settings ={ &nbsp; &nbsp;plugins = &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; ["CoronaProvider.gameNetwork.google"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { android=true } &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; }, &nbsp; android =&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; googlePlayGamesAppId = "386305178xxx", &nbsp; versionCode = "1", &nbsp; &nbsp; &nbsp; &nbsp; versionName = "1.0", &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; androidPermissions= &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; "android.permission.INTERNET", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "android.permission.ACCESS\_NETWORK\_STATE", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "android.permission.READ\_PHONE\_STATE", &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", } }, content = { width = 320, height = 480,&nbsp; scale = "letterBox", fps = 30, }, }

You can’t be getting the same error, Lori was trying to use Apple’s Game Center on Android builds which doesn’t work. You appear to be trying to use Google Play Game Services (GPGS) to do leaderboards on Android. I suspect you’re getting a similar but actually different error.

For us to help you we are going to need to you edit  your previous post and use code formatting for those different blocks of code. I would suggest taking out all the code the post. Select it in your editor do a CTRL-C or CMD-C on a Mac, then click the blue <> button in the editing tools (bold, italic, etc.) and then paste the code in with CTRL-V or CMD-V in the window that pops up. This will preserve your indentions for the code. Do each block of code in separate code blocks.

Then copy and paste the entire error you’re getting from your device’s console log. If you’re using build 2830 or later, and your device is tethered and you’re letting Corona SDK install the app to your device, you can copy/paste the error from our console window. If not you will need to use adb logcat or monitor from the command line to capture this. Please see:
 

http://docs.coronalabs.com/guide/basics/debugging/index.html

If you need help on capturing the device’s console log.

Rob