最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - :feature:authentication:data:main: Could not resolve androidx.browser:browser:1.4.0? - Stack Overflow

programmeradmin0浏览0评论

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")
发布评论

评论列表(0)

  1. 暂无评论