When I try to init Google Play Game Services, I get an error message
“The Google Play services resources were not found. Check your project configuration to ensure that the resources are included”
(The login request does not execute, app crashes before).
I saw some threads about the same message for Corona Enterprise - but I’m on Pro.
Full log cat:
E/GooglePlayServicesUtil( 2706): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. I/Corona ( 2706): initGPGSCallback { I/Corona ( 2706): data = true, I/Corona ( 2706): name = "init", I/Corona ( 2706): type = "init" I/Corona ( 2706): } D/BaseGameActivity( 2706): onCreate: creating GamesClient I/dalvikvm( 2706): Could not find method android.view.View.getDisplay, referenced from method com.google.android.gms.internal.bv$b.b W/dalvikvm( 2706): VFY: unable to resolve virtual method 3997: Landroid/view/View;.getDisplay ()Landroid/view/Display; D/dalvikvm( 2706): VFY: replacing opcode 0x6e at 0x0009 D/dalvikvm( 2706): GC\_CONCURRENT freed 4350K, 34% free 8871K/13319K, paused 13ms+17ms, total 91ms E/GooglePlayServicesUtil( 2706): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. D/BaseGameActivity( 2706): isGooglePlayServicesAvailable returned 0 D/BaseGameActivity( 2706): beginUserInitiatedSignIn: starting new sign-in flow. D/BaseGameActivity( 2706): Connecting GamesClient. E/GooglePlayServicesUtil( 2706): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. W/GooglePlayServicesUtil( 724): Certificate has expired. W/GooglePlayServicesUtil( 724): Certificate has expired. E/ValidateServiceOp( 724): Using Google Play games services requires a metadata tag with the name "com.google.android.gms.games.APP\_ID" in the application tag of your manifest D/AndroidRuntime( 2706): Shutting down VM W/dalvikvm( 2706): threadid=1: thread exiting with uncaught exception (group=0x40e40300) D/FlurryAgent( 2706): Ending session E/AndroidRuntime( 2706): FATAL EXCEPTION: main E/AndroidRuntime( 2706): java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information. E/AndroidRuntime( 2706): at com.google.android.gms.internal.u$f.a(Unknown Source) E/AndroidRuntime( 2706): at com.google.android.gms.internal.u$f.a(Unknown Source) E/AndroidRuntime( 2706): at com.google.android.gms.internal.u$b.A(Unknown Source) E/AndroidRuntime( 2706): at com.google.android.gms.internal.u$a.handleMessage(Unknown Source) E/AndroidRuntime( 2706): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 2706): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 2706): at android.app.ActivityThread.main(ActivityThread.java:4745) E/AndroidRuntime( 2706): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2706): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 2706): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) E/AndroidRuntime( 2706): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) E/AndroidRuntime( 2706): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 249): Force finishing activity com.netzfrequenz.android.mygame/com.ansca.corona.CoronaActivity D/dalvikvm( 249): GC\_FOR\_ALLOC freed 655K, 16% free 15849K/18759K, paused 208ms, total 214ms W/ActivityManager( 249): Activity pause timeout for ActivityRecord{41cf1168 com.netzfrequenz.android.mygame/com.ansca.corona.CoronaActivity} D/dalvikvm( 2706): GC\_CONCURRENT freed 426K, 34% free 8885K/13319K, paused 14ms+2ms, total 69ms W/ActivityManager( 249): Activity destroy timeout for ActivityRecord{41cf1168 com.netzfrequenz.android.mygame/com.ansca.corona.CoronaActivity} D/dalvikvm( 249): GC\_CONCURRENT freed 1710K, 15% free 15991K/18759K, paused 14ms+13ms, total 154ms D/GCM ( 569): Ignoring attempt to send heartbeat on dead connection. W/Smack/Packet( 569): notify conn break (IOEx), close connection
Here’s my code:
main.lua:
local gameNetwork = require "gameNetwork" ... local function initGPGSCallback( event ) print ("initGPGSCallback " .. inspect(event)) gameNetwork.request( "login", { userInitiated=true, listener=gpgsLoginCallback } ) end gameNetwork.init( "google", initGPGSCallback )
build.settings:
settings = { orientation = { default = "portrait", supported = { "portrait", "portraitUpsideDown" }, }, android = { { versionCode = "2", googlePlayGamesAppId = "XXX676032XXX", -- Your Google Play Games App Id }, androidPermissions = { "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_NETWORK\_STATE" }, }, plugins = { ... ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", }, } }
Any advice?
Thanks,
Thomas