cpp-android-basic-samples
cpp-android-basic-samples copied to clipboard
SDK is not compatible with play-services-games newer than 18.0.1
For some reason, when com.google.android.gms:play-services-games:21.0.0 is used we experience crashes at
gpg::JavaClass::FinishClassRegistration(_JNIEnv*, _jclass*)+136
gpg::JavaClass::Register(_JNIEnv*, gpg::JavaReference const&)+368
gpg::JavaClass::RegisterEmbeddedDexClassesInternal(gpg::JavaReference const&, bool*, char const*, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits
Please, note that everything works just fine with when com.google.android.gms:play-services-games:18.0.1 is used.
I've just encountered the same problem. If I use implementation 'com.google.android.gms:play-services-games:21.0.0' in my gradle then it causes a crash in gpg::GameServices::Builder::Create. However, if I change the gradle to use 20.0.1 then it works fine.