Android Question Google Play Game Services - Error 3 code=10002

coldteam

Active Member
Licensed User
Longtime User
Hello!
I read a few topics with such errors, but did not find a solution for myself.
I use the InformatiX library.

I downloaded the demo prokt and replaced the package name and added the xml file to the resources.

created and published a project in gaming services.

but when trying to connect, an error appears: SIGN_IN_FAILED Error=3 Code=10002


any ideas ? check what
 

coldteam

Active Member
Licensed User
Longtime User
Yes, email is entered by default.
in the testing section, it is written: ready for testing
I took a demo project, added resources, changed the name of the package, applied the version, chose the key of this project.


can i test without uploading the apk file through the google console?
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Yes, email is entered by default.
in the testing section, it is written: ready for testing
I took a demo project, added resources, changed the name of the package, applied the version, chose the key of this project.


can i test without uploading the apk file through the google console?
I think you can test without publishing the game first, but you have to make sure that the tester emails are in the whitelist (the list of testers for that game in GPGS console).

Which version of the library are you using?

When I first started using Informatix's latest version, I made some changes to the Connection class because I think I had similar issues to you (it was a while ago now, so I don't recall exactly what the issues were). Basically I removed all references to GPlayNetworkInfo - per the code below:

B4X:
Public Sub AutoConnect
    'If NI.IsConnected Then
        If Not(IsAlreadyConnected) Then GPC.Connect(False)
'    Else If GPC.ConnectionState <> GPC.STATE_DISCONNECTED Then
''        'Not connected to a data network
'        GPC.Disconnect(False)
'        Dim Error As typError
'        Error.Initialize
'        Error.Code = GPC.RESULT_NETWORK_ERROR
'        Error.Msg = "Not connected to a data network."
'        Error.Error = ERROR_NO_NETWORK
'        CallSub2(clbkModule, clbkFailure, Error)
'    End If
End Sub

Public Sub IsConnected As Boolean
'    If GPC.ConnectionState = GPC.STATE_CONNECTED Then
'        Log($"Connection State: True"$)
'    Else
'        Log($"Connection State: False"$)
'    End If
    Return GPC.IsConnected
   
End Sub

Public Sub SignIn
    'If NI.IsConnected Then
        If IsAlreadyConnected Then
            GPC.Reconnect
        Else
            GPC.Connect(True)
        End If
'    Else
'        'Not connected to a data network
'        GPC.Disconnect(False)
'        Dim Error As typError
'        Error.Initialize
'        Error.Code = GPC.RESULT_NETWORK_ERROR
'        Error.Msg = "Not connected to a data network."
'        Error.Error = ERROR_NO_NETWORK
'        CallSub2(clbkModule, clbkFailure, Error)
'    End If
End Sub

I've never encountered any issues by not using GPlayNetworkInfo.

- Colin.
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
I published the application and it connected, but it is very inconvenient. How to test without upload?
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
when I upload a demo project, it works fine. But when I put this code into my libgdx project, SignIn works and I get a list of achievements. But when I click SignOut - the application stops working. (Without report) I can’t get the report and don’t see the logs (as I upload the application via the console). There must be a way to test, easier. Maybe the error is related to threads.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Can you not just implement firebase Crash into your project to get the xrashreported maybe in this way?
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Posting one liners & screenshots without any context or explanation (or code) isn't going to get your issues resolved.

Going back a couple of posts - how are you testing the app? You're not installing it from Play Store & running it are you? If so, why? You can test GPGS from the B4A IDE. You might need to upload a test build to your developer console (it's been so long I can't remember tbh) but after that you can test builds in the IDE.

- Colin.
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
Now for testing, I am aware of the new version of the application, I load it into the console as
Version for internal testing
after that i Download derivative of APK
and send it to the device
it takes a lot of time, and does not allow me to view the logs.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Now for testing, I am aware of the new version of the application, I load it into the console as
Version for internal testing
after that i Download derivative of APK
and send it to the device
it takes a lot of time, and does not allow me to view the logs.
If you're testing release builds from the B4A IDE you can see the logs. Either connect to the device via USB, or if you're using B4A Bridge you need to add:

B4X:
#BridgeLogger: True

to the Project Attributes section.

- Colin.
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
Yes, I use it, across the B4A Bridge with #BridgeLogger: True

but apk downloaded from the console does not work
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Yes, I use it, across the B4A Bridge with #BridgeLogger: True

but apk downloaded from the console does not work
But why are you testing apks that you download from the console? If you have set up GPGS correctly you can test builds in the B4A IDE.

- Colin.
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
But why are you testing apks that you download from the console? If you have set up GPGS correctly you can test builds in the B4A IDE.

- Colin.

if I don’t upload and do not download via the console, it doesn’t work and produces a 10002 error


This is the log I received from the console, apparently this error SignOut
B4X:
java.lang.RuntimeException:
  at android.app.ActivityThread.handleCreateService (ActivityThread.java:3531)
  at android.app.ActivityThread.access$1300 (ActivityThread.java:200)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1676)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:193)
  at android.app.ActivityThread.main (ActivityThread.java:6762)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
Caused by: java.lang.ClassNotFoundException:
  at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:134)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
  at android.app.AppComponentFactory.instantiateService (AppComponentFactory.java:103)
  at android.app.ActivityThread.handleCreateService (ActivityThread.java:3526)
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
if I don’t upload and do not download via the console, it doesn’t work and produces a 10002 error

Then you don't have it set up properly. If you have GPGS set up properly for the app you can test it from B4A.

- Colin.
 
Upvote 0
Top