B4A Library Google Play Game Services

D

Deleted member 30048

Guest
Hi

I am getting

internal error
Error=0 Code=8

any ideas?

Are you trying to access saved games?

check in the game information section if the saved games are as "yes".

Best regards!
 

MaxApps

Active Member
Licensed User
Longtime User


Almost a day later and still the same
 

Marcela Calixto

Member
Licensed User
Longtime User
I see now that may Google Play Services app is version 5.0.89 (ref your previous post about it had to be 6.1....). Could that be the problem? I cannot see how I can update this?
 

MaxApps

Active Member
Licensed User
Longtime User
I have Google Play Service 6.1.11 and cannot get it to work
 

Informatix

Expert
Licensed User
Longtime User
I see now that may Google Play Services app is version 5.0.89 (ref your previous post about it had to be 6.1....). Could that be the problem? I cannot see how I can update this?
The version should be 6.1.xxx on all devices, whatever Android version you have. You can update the Google Play Services app with your Play Store app as any other app. On my own devices, it has been updated automatically.
 

hanyelmehy

Active Member
Licensed User
Longtime User
first i get this error
B4X:
AndroidManifest.xml:25: error: Error: No resource found that matches the given name (at 'value' with value '@string/app_id').

i try to remove above lines from manifest to run project ,then i get this error
B4X:
Initialize: creating a GoogleAPIClient instance
State change: Unconfigured -> Disconnected
Initialize: ready for connection
** Activity (main) Resume **
Connect: state = Disconnected
Connect: no auto sign-in, FirstAttempt is false
NetworkInfo.onConnectivityChange: Bundle[{networkInfo=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true, inetCondition=0}]
Connect: state = Disconnected
Connect: first attempt
Connect: isGooglePlayServicesAvailable returned 0
State change: Disconnected -> Connecting
java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
    at com.google.android.gms.internal.hc$h.b(Unknown Source)
    at com.google.android.gms.internal.hc$h.d(Unknown Source)
    at com.google.android.gms.internal.hc$b.fq(Unknown Source)
    at com.google.android.gms.internal.hc$a.handleMessage(Unknown Source)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4517)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
    at dalvik.system.NativeStart.main(Native Method)
 

Informatix

Expert
Licensed User
Longtime User
You missed a step in my first post (probably the copy of Games-id.xml). Please re-read it carefully.
 

MaxApps

Active Member
Licensed User
Longtime User
Thanks for the help Informatix

It works and I am a few hours, from releasing an update, to one of my games, with Leader-boards and achievements
 

hanyelmehy

Active Member
Licensed User
Longtime User
Sorry, but I don't understand. Did you copy the xml file in your res/values folder?
Did you copy the xml file in your res/values folder? yes i copy it and make all instruction as mention in first post
my question about xml file name ,i use (ids.xml) as a file name ,you say (probably the copy of Games-id.xml) ,so what is the correct name (ids.xml or Games-id.xml)
Thank you
 

Informatix

Expert
Licensed User
Longtime User
I cannot say whether the name is really important, but as you can read in the file itself, Google suggests to name it "games-ids.xml", so there's no good reason to do otherwise.
 

ppgirl

Member
Licensed User
Longtime User
Hi

I have followed your steps , and the APK will casue a error after run with "AchievementsLeaderboards”.

It looks like lost "flm.b4a.googleplay.GooglePlayConnection" , but I can find it in the APK package.

I use API19, and get ID for google console.

Please help me.

** Activity (main) Create, isFirst = true **

clsconnection_class_globals (java line: 87)
java.lang.NoClassDefFoundError: flm.b4a.googleplay.GooglePlayConnection

at com.example.clsconnection._class_globals(clsconnection.java:87)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at com.example.clsconnection.innerInitialize(clsconnection.java:23)
at com.example.clsconnection._initialize(clsconnection.java:264)
at com.example.main._activity_create(main.java:301)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at com.example.main.afterFirstLayout(main.java:98)
at com.example.main.access$100(main.java:16)
at com.example.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
 

Informatix

Expert
Licensed User
Longtime User
I don't know why you get this error, but you probably missed something. That looks like there's a library missing.
 

Spinter

Active Member
Licensed User
Longtime User
test login Google Play Services rev. 21 ok!
TurnBasedMatch (activate Multiplayer Turn)
save game test ok (activate game save)
AchievementsLeaderboards(activate game save)
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…