android - 当我使用 ./gradlew lintDebug 构建应用程序时,无法从 mavenCentral 获取 firebase-ui-auth
问题描述
我正在尝试将 android 应用程序库的来源从JCenter
更改为MavenCentral
,因为JCenter
它将被关闭。
我已经检查过了,firebase-ui-auth v7.1.1
并且v7.2.0
在 中MavenCentral
,但是当我使用 构建应用程序时./gradlew lintDebug
,firebase-ui-auth
找不到并且构建失败。
我还检查过,如果我使用 assembleDebug 构建,或者我在 AndroidStudio 上运行应用程序,构建成功并且应用程序在移动设备上运行。
我也尝试在 AndroidStudio 上创建一个新项目,并完成以下步骤,但构建仍然失败。
- 添加
implementation "com.firebaseui:firebase-ui-auth:7.2.0"
// 或7.1.1
- 消除
jcenter()
我在下面放了一些日志。知道为什么,以及如何解决吗?
谢谢!
./gradlew lintDebug:
* What went wrong:
Could not determine the dependencies of task ':app:lintDebug'.
> Could not resolve all artifacts for configuration ':app:debugAndroidTestCompileClasspath'.
> Could not find com.google.firebase:firebase-auth:.
Required by:
project :app > com.firebaseui:firebase-ui-auth:7.2.0
构建.gradle:
buildscript {
...
repositories {
google()
mavenCentral()
...
}
...
}
allprojects {
repositories {
google()
mavenCentral()
...
}
}
...
build.gradle(:app):
...
dependencies {
...
implementation "com.firebaseui:firebase-ui-auth:7.2.0" // or 7.1.1
...
}
https://search.maven.org/artifact/com.firebaseui/firebase-ui-auth/7.2.0/aar
解决方案
推荐阅读
- java - 在摩尔斯电码阅读器中将空字符串转换为空格
- windows - 如何以编程方式拼贴显示?
- github - 复合运行步骤 GitHub 操作错误:“在 URI 上找不到操作”
- c++ - 如何在 C++ 中使用犰狳在多维数组之间进行按位与?
- antd - 如何使用按钮道具动态禁用antd modal的按钮
- sql-server - 有没有办法在 Angular 中访问本地 SQL Server 数据库?
- php - PHP图像缩放算法固定高度和宽度混淆
- python - 如何在并行随机数生成期间产生 NumPy SeedSequence 的种子?
- java - 没有 System.out.println 的 Java while(true) 循环永远不会结束
- r - 因子分析不适用于分类变量分析