Issue with Android and Google Play Games C++ SDK

  • Thread starter Thread starter PaulMathias
  • Start date Start date
P

PaulMathias

Guest
Hello,

I am working on a game that is in C++ on Android using Visual Studio 2017 and Ant build system. I am trying to hook up the Google Play Services for leaderboards but the gpg::GameServices::Builder().Create is failing with:

Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/GoogleApiClient$ConnectionCallbacks;

Other info:

The min SDK is 22

The NDK is r15c

ANT is 1.9.3

I have linked the libgpg.a lib to my project. I have a OAuth2.0 client ID.

I have even set up a obb download from GooglePlay and that works fine. Is there another library or jar that I am missing? I have followed the steps here: Get Started with Play Games Services for C++ | Google Developers

Continue reading...
 
Back
Top