Giter Site home page Giter Site logo

Comments (6)

MrStahlfelge avatar MrStahlfelge commented on May 10, 2024 1

I am glad it works now. :-)

from gdx-gamesvcs.

kalexmills avatar kalexmills commented on May 10, 2024

I've also tried declaring transitive dependencies myself at the version required by the lib. This also does not work.

        compile group: 'com.android.support', name: 'appcompat-v7', version: '20.0.0'
        compile group: 'com.android.support', name: 'support-v4', version: '20.0.0'
        compile group: 'com.google.android.gms', name: 'play-services-games', version: '8.4.0'
        compile group: 'com.google.android.gms', name: 'play-services-plus', version: '8.4.0'
        compile "de.golfgl.gdxgamesvcs:gdx-gamesvcs-android-gpgs:$gamesvcsVersion"

from gdx-gamesvcs.

MrStahlfelge avatar MrStahlfelge commented on May 10, 2024

You don't need to use the exact version 8.4, play services up to v11.5 work. Me, I indeed use 8.4.0 in my projects. They have around 1,000 active installs (20 of this are Galaxy S6 according to the Play console) and no crashes the last 30 days, so I assume there is a problem with your project setup.

Does your emulator have installed Play services? If not, I just assume you forgot to set your app_id. This is causing an IllegalStateException. Did you try the sample app on your device?

from gdx-gamesvcs.

kalexmills avatar kalexmills commented on May 10, 2024

To be clear, the emulator doesn't crash, even though Play services is not installed. It just redirects me to install play services. But on my S6 device, play services are installed, yet the app crashes whenever GpgsClient.connect() is called.

I also verified that I have two certs installed, one for release and one for debug.

I removed gsClient.resumeSession() calls from the create() and resume() methods and the app stays stable until I explicitly log in. So the crash is happening just after that call to GpgsClient.connect(). I removed the library overrides and this still occurs.

Then I get a much more helpful error message... that the APP_ID isn't specified correctly. So you were on the right track, good job... somehow I had an old package name set in the manifest... updating it to the correct package name resolves this error... but the app still crashes shortly after connect() is called.

from gdx-gamesvcs.

kalexmills avatar kalexmills commented on May 10, 2024

So for a moment, I though this might have something to do with the Game Services being unpublished in the developer console, and so I published it... but that didn't make any difference and I am still seeing the crash.

from gdx-gamesvcs.

kalexmills avatar kalexmills commented on May 10, 2024

I was able to resolve the issue....

Apparently the app_id metadata belongs inside the <application> tag. 🤦‍♂️

Thanks @MrStahlfelge for your quick / polite response. :-)

from gdx-gamesvcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.