My project runs fine before i try to connect with firebase. I then go to tools -> Firebase -> Connect your app to Firebase
and Add Cloud firestore to your app. After I select these options they say 'Connected' and 'Dependencies set up correctly' but immediately after I get the following error:
"Unable to load class 'com.android.build.api.dsl.StoreArchive'."
I haven't tried anything as I can't work out where the error is.
in build.gradle
project level, downgrading from classpath 'com.google.gms:google-services:4.4.0'
to classpath 'com.google.gms:google-services:4.3.10'
solved the probelm.
other related information in wrapper:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With