Comments (6)
I am glad it works now. :-)
from gdx-gamesvcs.
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.
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.
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.
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.
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)
- GPGS Desktop: SEVERE: unable to refresh token, Help? HOT 3
- GPGS Android: Cloud Save - Gamestate Not Null? HOT 1
- GPGS Android: Disconnect from service while saving leads to crash HOT 1
- Project doesn't build with gpg on android with build tools 28 / gradle 4.6 HOT 18
- GPGS Real-time Multiplayer support HOT 1
- GameCenter Cloud save error 27 HOT 14
- Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'fewZBzlAIBvWOuukVqyWKzOi' HOT 1
- GPGS Android: UserRecoverableAuthException: NeedPermission HOT 11
- Google Play Games no achievement popup HOT 10
- Cannot log in Google Play Services when cloud save enabled HOT 7
- Runtime error java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap; HOT 2
- GameCenter: UnsupportedOperationException on loadGameState() HOT 1
- Getting a unique User ID HOT 2
- wiki update HOT 2
- android-gpgs: GpgsClient using deprecated Google APIs HOT 1
- Documentation has incorrect version label HOT 1
- ERROR while show leaderboards HOT 5
- Crash on first start after deleting data HOT 1
- Vulnerability warning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdx-gamesvcs.