Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Google Play on Android — Gideros Forum

Google Play on Android

totebototebo Member
edited June 2014 in Bugs and issues
Hi,

Starting with the good news; I've successfully been able to build an app using the Ads interface on Android. Since I installed Google Play services for it to function, I assumed I would be able to get the Google Play authentication for free. However, when I try:
require "googleplay"
The app crashes almost immediately. I say almost, because until I press the "OK" button for the "Unfortunately, app name has stopped" I can still trace/print things.

As per usual I have been a good boy and followed these instructions to install Google Play services:
http://giderosmobile.com/labs/google-play-services

And these instructions to install Ads interface:
http://docs.giderosmobile.com/interface/ads

Is there a way to debug this crash, or maybe pointers as to what's going on?

Cheers,

Niclas
My Gideros games: www.totebo.com

Comments

  • Hi @Totebo

    You could connect your android device and open Eclipse with ADT installed. Then you could see realtime catlog of your device.

    As for Google Play service, i think it would be wise to also read this official docs http://developer.android.com/google/play-services/index.html
    have fun with our games~
    http://www.nightspade.com
  • totebototebo Member
    edited June 2014
    Hey @nascode, thanks for the response. Last night I did just that and posted part of the log here http://giderosmobile.com/forum/discussion/comment/37135#Comment_37135.
    06-04 22:32:05.480: E/AndroidRuntime(25536): FATAL EXCEPTION: main
    06-04 22:32:05.480: E/AndroidRuntime(25536): Process: com.totebo.nobrakes, PID: 25536
    06-04 22:32:05.480: E/AndroidRuntime(25536): java.lang.NullPointerException: Null options are not permitted for this Api
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.google.android.gms.internal.fq.b(Unknown Source)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.google.android.gms.common.api.GoogleApiClient$Builder.addApi(Unknown Source)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.giderosmobile.android.plugins.googleplaygame.GameHelper.createApiClientBuilder(GameHelper.java:286)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.giderosmobile.android.plugins.googleplaygame.GameHelper.setup(GameHelper.java:319)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.giderosmobile.android.plugins.googleplaygame.GGooglePlay$2.run(GGooglePlay.java:200)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at android.os.Handler.handleCallback(Handler.java:733)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at android.os.Handler.dispatchMessage(Handler.java:95)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at android.os.Looper.loop(Looper.java:136)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at java.lang.reflect.Method.invokeNative(Native Method)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at java.lang.reflect.Method.invoke(Method.java:515)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at dalvik.system.NativeStart.main(Native Method)
    It seems to have something to do with GameHelper.java. A bit rusty since studying Java some 14 years ago!

    As for the Google docs, I've been reading and re-reading them a few times, and as far as I can tell I have done everything they mention.

    Niclas
    My Gideros games: www.totebo.com
  • totebototebo Member
    Just to close this thread, the solution to the problem turned out to be an issue with a Google Play update which has now been fixed.

    More info here: http://giderosmobile.com/forum/discussion/comment/37175#Comment_37175
    My Gideros games: www.totebo.com
Sign In or Register to comment.