Closed santyas closed 1 month ago
Task :composeApp:generateDebugAndroidTestLintModel FAILED
FAILURE: Build failed with an exception.
Could not resolve all files for configuration ':composeApp:debugAndroidTestCompileClasspath'. Could not find com.google.firebase:firebase-auth-ktx:. Required by: project :composeApp > io.github.mirzemehdi:kmpauth-firebase:2.1.0 > io.github.mirzemehdi:kmpauth-firebase-android-debug:2.1.0 > dev.gitlive:firebase-auth:2.1.0 > dev.gitlive:firebase-auth-android-debug:2.1.0 Could not find com.google.firebase:firebase-common-ktx:. Required by: project :composeApp > io.github.mirzemehdi:kmpauth-firebase:2.1.0 > io.github.mirzemehdi:kmpauth-firebase-android-debug:2.1.0 > dev.gitlive:firebase-auth:2.1.0 > dev.gitlive:firebase-auth-android-debug:2.1.0 > dev.gitlive:firebase-app:2.1.0 > dev.gitlive:firebase-app-android-debug:2.1.0`
@santyas which targets your project support? Only android and ios?
Also you can try to add this library to see if it is solved:
implementation("dev.gitlive:firebase-auth:2.1.0")
I also get those but only as warning, it doesn't cause any error
Looks like problem comes from Firebae Gitlive lib.
Related issue: https://github.com/GitLiveApp/firebase-kotlin-sdk/issues/356
Okay so solution is to add these dependencies in your androidMain
sourceSet
implementation("com.google.firebase:firebase-common-ktx:21.0.0")
implementation("com.google.firebase:firebase-auth-ktx:21.0.0")
Ok so should I add gitlive lib too?
you will not need to add that probably only above two implementation should solve the issue
Good catch! No errors! I have kept all 3 and it works. Yes Im working on in a android & ios project only.
Im sharing my gradle configuration with you if you want to test kmpauth with those recent dependency versions: https://gist.github.com/santyas/5a79f1d997a571c3ebfb8d0354c8ffee
Thank you!
Hello! Could that errors be related to this library?
Could I have missed something with kmpauth setup?
Thank you!