Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I correct 'Unable to load class 'com.android.build.api.dsl.StoreArchive'.' error when i add firebase firestore to my android studio project

Tags:

android

gradle

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.

like image 543
Quaresma Avatar asked Sep 08 '25 17:09

Quaresma


1 Answers

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
like image 63
صلي علي محمد Atef Farouk Avatar answered Sep 10 '25 06:09

صلي علي محمد Atef Farouk