Trying to add Firebase (build question) #1859
maartenvandillen
started this conversation in
Ideas & New Features
Replies: 1 comment
-
Thanks for redirecting this to the right place. To answer my own question, I had to downgrade the Gradle version to 8.4 to fix the error. I was hoping to make a PR eventually but I can't see a way to connect to the desired Firestore through the preferences and code. It seems to be tied to the google services json file and the application ID package name. Other than that it's working perfectly updating locations per device ID in my Firestore. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, hope this question is appropriate here. I am trying to implement a third MessageProcessorEndpoint that writes locations to a Firebase Firestore. I got to the point where it tries to update the store but realised I forgot to include the standard Firebase setup. Following these steps from the documentation:
/build.gradle
// Add the dependency for the Google services Gradle plugin
id("com.google.gms.google-services") version "4.4.2" apply false
//build.gradle
// Add the Google services Gradle plugin
id("com.google.gms.google-services")
I get this error during Gradle sync I can't understand (see below). Does anyone know how to add this dependency without any conflicts?
java.lang.LinkageError: loader constraint violation in interface itable initialization for class com.android.build.gradle.internal.api.VariantFilter: when selecting method 'com.android.builder.model.BuildType com.android.build.api.variant.VariantFilter.getBuildType()' the class loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @423be4f6 for super interface com.android.build.api.variant.VariantFilter, and the class loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @2d9bdd75 of the selected method's class, com.android.build.gradle.internal.api.VariantFilter have different Class objects for the type com.android.builder.model.BuildType used in the signature (com.android.build.api.variant.VariantFilter is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @423be4f6, parent loader org.gradle.internal.classloader.CachingClassLoader @6e5780bf; com.android.build.gradle.internal.api.VariantFilter is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @2d9bdd75, parent loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @423be4f6)
at com.android.build.gradle.internal.VariantManager.(VariantManager.kt:1057)
at com.android.build.gradle.internal.plugins.BasePlugin$variantManager$2$1.invoke(BasePlugin.kt:237)
at com.android.build.gradle.internal.plugins.BasePlugin$variantManager$2$1.invoke(BasePlugin.kt:235)
at com.android.build.gradle.internal.plugins.AndroidPluginBaseServices.withProject(AndroidPluginBaseServices.kt:360)
(very long stack trace here)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions