gpt4 book ai didi

android - FirebaseUI 身份验证错误 :Failed to resolve: com. android.support :xxx:26. 0.1

转载 作者:行者123 更新时间:2023-11-29 15:38:14 26 4
gpt4 key购买 nike

我正在尝试将 FirebaseUI Auth 添加到我的项目中,但我总是像这样同步失败:

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
> Could not find com.android.support:appcompat-v7:26.0.1.
Required by:
project :app
> Could not find com.android.support:support-compat:26.0.1.
Required by:
project :app
> Could not find com.android.support.constraint:constraint-layout:1.1.0-beta1.
Required by:
project :app
> Could not find com.android.support:design:26.0.1.
Required by:
project :app > com.firebaseui:firebase-ui-auth:2.3.0
> Could not find com.android.support:customtabs:26.0.1.
Required by:
project :app > com.firebaseui:firebase-ui-auth:2.3.0
> Could not find com.android.support.constraint:constraint-layout:1.1.0-beta1.
Required by:
project :app > com.firebaseui:firebase-ui-auth:2.3.0
> Could not find com.android.support:cardview-v7:26.0.1.
Required by:
project :app > com.firebaseui:firebase-ui-auth:2.3.0
> Could not find com.android.support:appcompat-v7:26.0.1.
Required by:
project :app > com.google.android.gms:play-services:11.0.4 > com.google.android.gms:play-services-cast:11.0.4 > com.android.support:mediarouter-v7:25.2.0
> Could not find com.android.support:support-compat:26.0.1.
Required by:
project :app > com.google.android.gms:play-services:11.0.4 >
com.google.android.gms:play-services-basement:11.0.4 >
com.android.support:support-v4:25.2.0
project :app > com.google.android.gms:play-services:11.0.4 >
com.google.android.gms:play-services-cast:11.0.4 >
com.android.support:mediarouter-v7:25.2.0 > com.android.support:palette-v7:25.2.0
project :app > com.google.android.gms:play-services:11.0.4 >
com.google.android.gms:play-services-basement:11.0.4 >
com.android.support:support-v4:25.2.0 > com.android.support:support-media-
compat:25.2.0
project :app > com.google.android.gms:play-services:11.0.4 >
com.google.android.gms:play-services-basement:11.0.4 >
com.android.support:support-v4:25.2.0 > com.android.support:support-core-utils:25.2.0
project :app > com.google.android.gms:play-services:11.0.4 >
com.google.android.gms:play-services-basement:11.0.4 >
com.android.support:support-v4:25.2.0 > com.android.support:support-core-ui:25.2.0
project :app > com.google.android.gms:play-services:11.0.4 >
com.google.android.gms:play-services-basement:11.0.4 >
com.android.support:support-v4:25.2.0 > com.android.support:support-fragment:25.2.0

我的应用级 build.gradle 如下所示:

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.chalker.chalker"
minSdkVersion 23
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.0.1'
compile "com.android.support:support-compat:26.0.1"
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.firebaseui:firebase-ui-auth:2.3.0'
}
apply plugin: 'com.google.gms.google-services'

还有我的项目级build.gradle:

buildscript {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'
}
}

allprojects {
repositories {
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

我在这里阅读了类似的问题并为其他人提出了解决问题的建议,但我无法让我的工作......提前感谢您的帮助!维克托

最佳答案

在您的项目级 build.gradle 中,移动此 block :

maven {
url "https://maven.google.com"
}

buildscript/repositoriesallprojects/repositories

allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}

关于android - FirebaseUI 身份验证错误 :Failed to resolve: com. android.support :xxx:26. 0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45846214/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com