cpp-android-basic-samples icon indicating copy to clipboard operation
cpp-android-basic-samples copied to clipboard

SDK is not compatible with play-services-games newer than 18.0.1

Open imixerpro opened this issue 3 years ago • 1 comments

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, std::__ndk1::allocator> const&, std::__ndk1::vector<gpg::JavaClass*, std::__ndk1::allocatorgpg::JavaClass*> const&)+1148 gpg::JavaClass::RegisterEmbeddedDexClasses(gpg::JavaReference const&)+84 gpg::AndroidPlatformConfiguration::Valid() const+104 gpg::GameServices::Builder::Create(gpg::AndroidPlatformConfiguration const&)+76

Please, note that everything works just fine with when com.google.android.gms:play-services-games:18.0.1 is used.

imixerpro avatar Apr 09 '21 13:04 imixerpro

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.

Spud6703 avatar Oct 11 '21 21:10 Spud6703