-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase incompatible with Google Play Games #70
Comments
This is a known problem which we're working on. Did you downgrade all packages to the same version? You can't mix and match them. |
I have downgraded all play-services-*.aar packages in the Assets/Plugins/Android directory.
|
It sounds like you're now missing the dependencies. How are you downgrading? You might want to set the version in the "*deps.cs" files, and you'll still need to use the android jar resolver. |
I tried to manually set the version in all the "*deps.cs" files. Now the resolver correctly resolves to 10.0.1 on every dependency in the Assets/Plugins/Android directory. If I execute the quickstart project Firebase Messaging works flawlessly.
My best guess is that it's happening during the execution of the |
Did you follow the instructions for setting up your app on the firebase console? I'd especially double check the part about setting up your SHA certificate: |
Thanks for your advice. The issue is now solved.
|
Hi.
I'm trying to integrate Firebase Messaging in a project that uses the Google Play Games plugin.
I used the messaging testapp, and I added the official FirebaseMessaging.unitypackage from the 3.0.1 zip file.
I then added GooglePlayGamesPlugin-0.9.36.unitypackage from the official github repo.
I let the Play Services Resolver automatically pull the right google-play libraries (currently 1.2.0).
I edited the UIHandler.cs script adding only
PlayGamesPlatform.Activate ();
andSocial.localUser.Authenticate (OnAuthenticate);
in the Start() function.When the app stasts, it crashes giving me this error:
GamesNativeSDK: Exception in dalvik/system/DexClassLoader.loadClass: java.lang.IncompatibleClassChangeError: Class com.google.android.gms.games.NativeSdkCallbacks implements non-interface class com.google.android.gms.nearby.connection.Connections$ConnectionRequestListener (declaration of 'com.google.android.gms.games.NativeSdkCallbacks' appears in /data/user/0/com.testproject.testgame/app_.gpg.classloader/d75c8e1bbeab9e1ddffb9d332585db71.jar).
If I disable the Play Services Resolver, and manually downgrade the google-play libraries to 10.0.1, I get this error:
AndroidRuntime: java.lang.NoSuchMethodError: No static method zzdz(Ljava/lang/String;)Z in class Lcom/google/android/gms/common/util/zzw; or its super classes (declaration of 'com.google.android.gms.common.util.zzw' appears in /data/app/com.testproject.testgame-1/base.apk)
Is there any workaround or solution to the problem?
The text was updated successfully, but these errors were encountered: