Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Google Play Games plugin not working — Gideros Forum

Google Play Games plugin not working

test29test29 Member
edited May 2016 in Bugs and issues
In the new Gideros, plugin Google play games doesn't work.

Last version that I managed to work is 2015.04.18 with plugin from tutorial:
http://giderosmobile.com/forum/discussion/5806/tuto-video-tutorial-how-to-add-google-services-to-your-app

Comments

  • Which error you are getting?
  • test29test29 Member
    Gideros 2016.4
    Google Play Games plugin from that version of Gideros.
    google-play-services_lib from version 29 (I tried few other versions, error is the same).

    Player compiles and starts normal. If I try some test code, everything works, but if I try google play (or only insert command 'require "googleplay" ') player crashes with errors (from logcat):
    05-23 23:13:11.224: D/AndroidRuntime(4260): Shutting down VM
    05-23 23:13:11.228: E/AndroidRuntime(4260): FATAL EXCEPTION: main
    05-23 23:13:11.228: E/AndroidRuntime(4260): Process: com.yourdomain.yourapp, PID: 4260
    05-23 23:13:11.228: E/AndroidRuntime(4260): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap;
    05-23 23:13:11.228: E/AndroidRuntime(4260): at com.google.android.gms.common.api.GoogleApiClient$Builder.(Unknown Source)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at com.google.android.gms.common.api.GoogleApiClient$Builder.(Unknown Source)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at com.giderosmobile.android.plugins.googleplaygame.GameHelper.createApiClientBuilder(GameHelper.java:277)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at com.giderosmobile.android.plugins.googleplaygame.GameHelper.setup(GameHelper.java:322)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at com.giderosmobile.android.plugins.googleplaygame.GGooglePlay$2.run(GGooglePlay.java:200)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at android.os.Handler.handleCallback(Handler.java:739)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at android.os.Handler.dispatchMessage(Handler.java:95)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at android.os.Looper.loop(Looper.java:135)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at android.app.ActivityThread.main(ActivityThread.java:5343)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at java.lang.reflect.Method.invoke(Native Method)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at java.lang.reflect.Method.invoke(Method.java:372)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
    05-23 23:13:11.228: E/AndroidRuntime(4260): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArrayMap" on path: DexPathList[[zip file "/data/app/com.yourdomain.yourapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.yourdomain.yourapp-1/lib/arm, /vendor/lib, /system/lib]]
    05-23 23:13:11.228: E/AndroidRuntime(4260): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    05-23 23:13:11.228: E/AndroidRuntime(4260): ... 13 more
    05-23 23:13:11.228: E/AndroidRuntime(4260): Suppressed: java.lang.ClassNotFoundException: android.support.v4.util.ArrayMap
    05-23 23:13:11.228: E/AndroidRuntime(4260): at java.lang.Class.classForName(Native Method)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
    05-23 23:13:11.228: E/AndroidRuntime(4260): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    05-23 23:13:11.228: E/AndroidRuntime(4260): ... 14 more
    05-23 23:13:11.228: E/AndroidRuntime(4260): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
    05-23 23:13:15.002: I/Process(4260): Sending signal. PID: 4260 SIG: 9
  • test29test29 Member
    I found solution.

    I added "support-v4" to eclipse and added reference to it and now it works!
  • talistalis Guru
    edited May 2016
    Perfect nice to hear that it works. No push here but we are hungry for small tutorials like this for the community. If you have time to write a short step by step tutorial how you succeed to make it work we can increase our knowledge in the community for the new comers also.

    In any case your solution is here with or without tutorial, thanks for sharing it :D
  • test29test29 Member
    I was hoping too soon. Multiplayer don't work.

    When I try autoMatch (googleplay:autoMatch(2, 2)), player crashes with error:

    "A/libc(17904): Fatal signal 6 (SIGABRT), code -6 in tid 17925 (GLThread 17606)"
Sign In or Register to comment.