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

Discussion in 'Android Questions' started by coldteam, Apr 16, 2019.

  1. coldteam

    coldteam Member Licensed 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
     
  2. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Last edited: Apr 16, 2019
  3. coldteam

    coldteam Member Licensed 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?
     
  4. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    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:

    Code:
    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.
     
    coldteam likes this.
  5. coldteam

    coldteam Member Licensed User

  6. coldteam

    coldteam Member Licensed User

    I published the application and it connected, but it is very inconvenient. How to test without upload?
     
  7. coldteam

    coldteam Member Licensed 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.
     
  8. DonManfred

    DonManfred Expert Licensed User

    Can you not just implement firebase Crash into your project to get the xrashreported maybe in this way?
     
    coldteam likes this.
  9. coldteam

    coldteam Member Licensed User

    now firebase use fabric.io crash reports
     
  10. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Crashlytics - which is part of Firebase.

    - Colin.
     
  11. coldteam

    coldteam Member Licensed User

  12. Computersmith64

    Computersmith64 Well-Known Member Licensed 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.
     
    coldteam likes this.
  13. coldteam

    coldteam Member Licensed 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.
     
  14. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    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:

    Code:
    #BridgeLogger: True
    to the Project Attributes section.

    - Colin.
     
  15. coldteam

    coldteam Member Licensed User

    Yes, I use it, across the B4A Bridge with #BridgeLogger: True

    but apk downloaded from the console does not work
     
  16. Computersmith64

    Computersmith64 Well-Known Member Licensed 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.
     
  17. coldteam

    coldteam Member Licensed User

    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
    Code:
    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)
     
  18. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    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.
     
    coldteam likes this.
  19. coldteam

    coldteam Member Licensed User

    Are you talking about game settings in google play games console?
     
  20. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Yes
    I'm talking about the Game Services settings in the console.

    - Colin.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice