i'm building a multi-module jetpack compose kotlin project similar to nowinandroid. In my feature package, i have authentication module where i handle login/signup using firebase. Inside my authentication i created a java/kotlin library, called data to handle AuthRepository.
But i'm getting this error.
:feature:authentication:data:main: Could not resolve androidx.browser:browser:1.4.0.
Required by: project :feature:authentication:data > com.google.firebase:firebase-auth-ktx:21.3.0 > com.google.firebase:firebase-auth:21.3.0
Possible solution:
- Declare repository providing the artifact, see the documentation at .html
This is the build.gradle in data module.
plugins {
id("java-library")
alias(libs.plugins.kotlin.jvm)
}
dependencies{
implementation(libs.javax.inject)
implementation(libs.firebase.firestore.ktx)
implementation(libs.firebase.auth.ktx)
}
This Project Settings.
pluginManagement {
includeBuild("build-logic")
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = uri(";)
}
}
}
rootProject.name = "Spotify"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include(":app")
include(":core:designsystem")
include(":feature:authentication")
include(":feature:authentication:data")