我想尝试使用Firebase-UI 3.4.0-SNAPSHOT版本,但无法正常使用。
在我的主构建文件中,我添加了以下repo:
allprojects {
repositories {
google()
jcenter()
maven { url 'https://oss.jfrog.org/artifactory/oss-release-local' } //for FirebaseUI snapshots
}
}'
在我的构建文件中,我按如下方式切换依赖项:
project.ext.firebase_ui = '3.4.0-SNAPSHOT'
//project.ext.firebase_ui = '3.3.1'
依赖关系是:
implementation "com.firebaseui:firebase-ui-database:${project.ext.firebase_ui}"
implementation "com.firebaseui:firebase-ui-firestore:${project.ext.firebase_ui}"
implementation "com.firebaseui:firebase-ui-storage:${project.ext.firebase_ui}"
implementation "com.firebaseui:firebase-ui-auth:${project.ext.firebase_ui}"
根据此处的文档:https://github.com/firebase/FirebaseUI-Android#snapshot-builds这应该可以解决问题,但我无法让构建运行:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.firebaseui:firebase-ui-database:3.4.0-SNAPSHOT.
Required by:
project :app
> Could not resolve com.firebaseui:firebase-ui-database:3.4.0-SNAPSHOT.
> Could not get resource 'https://oss.jfrog.org/artifactory/oss-release-local/com/firebaseui/firebase-ui-database/3.4.0-SNAPSHOT/firebase-ui-database-3.4.0-SNAPSHOT.pom'.
> Could not GET 'https://oss.jfrog.org/artifactory/oss-release-local/com/firebaseui/firebase-ui-database/3.4.0-SNAPSHOT/firebase-ui-database-3.4.0-SNAPSHOT.pom'. Received status code 409 from server:
> Could not resolve com.firebaseui:firebase-ui-firestore:3.4.0-SNAPSHOT.
Required by:
project :app
> Could not resolve com.firebaseui:firebase-ui-firestore:3.4.0-SNAPSHOT.
> Could not get resource 'https://oss.jfrog.org/artifactory/oss-release-local/com/firebaseui/firebase-ui-firestore/3.4.0-SNAPSHOT/firebase-ui-firestore-3.4.0-SNAPSHOT.pom'.
> Could not GET 'https://oss.jfrog.org/artifactory/oss-release-local/com/firebaseui/firebase-ui-firestore/3.4.0-SNAPSHOT/firebase-ui-firestore-3.4.0-SNAPSHOT.pom'. Received status code 409 from server:
> Could not resolve com.firebaseui:firebase-ui-storage:3.4.0-SNAPSHOT.
Required by:
project :app
> Could not resolve com.firebaseui:firebase-ui-storage:3.4.0-SNAPSHOT.
> Could not get resource 'https://oss.jfrog.org/artifactory/oss-release-local/com/firebaseui/firebase-ui-storage/3.4.0-SNAPSHOT/firebase-ui-storage-3.4.0-SNAPSHOT.pom'.
> Could not GET 'https://oss.jfrog.org/artifactory/oss-release-local/com/firebaseui/firebase-ui-storage/3.4.0-SNAPSHOT/firebase-ui-storage-3.4.0-SNAPSHOT.pom'. Received status code 409 from server:
> Could not resolve com.firebaseui:firebase-ui-auth:3.4.0-SNAPSHOT.
Required by:
project :app
> Could not resolve com.firebaseui:firebase-ui-auth:3.4.0-SNAPSHOT.
> Could not get resource 'https://oss.jfrog.org/artifactory/oss-release-local/com/firebaseui/firebase-ui-auth/3.4.0-SNAPSHOT/firebase-ui-auth-3.4.0-SNAPSHOT.pom'.
> Could not GET 'https://oss.jfrog.org/artifactory/oss-release-local/com/firebaseui/firebase-ui-auth/3.4.0-SNAPSHOT/firebase-ui-auth-3.4.0-SNAPSHOT.pom'. Received status code 409 from server:
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
3 actionable tasks: 3 executed
答案 0 :(得分:2)
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' }
顺便说一句,我们目前正在开发支持Firestore 16.0的4.0,添加了一个分页适配器,并杀死了所有已弃用的内容。