이 질문은 많이 제기되었지만 답변은 항상 SDK 관리자에게 가서 Google Play 서비스 및 Google 저장소가 설치/업데이트되었습니다.해결 실패 : com.google.firebase : firebase-auth : 11.2.2
광산은 모두 업데이트되고 설치됩니다. Google Play 서비스는 버전 44이고 Google 저장소는 버전 58입니다. 또한 Android Studio의 업데이트를 확인하면 최신 버전이 설치되어 있다고합니다. 그래서, 이것은 문제가 아닙니다. 누구든지 나를 도울 수 있습니까? (27, 13) :
여기 여기 내 다른 build.gradle 파일을 내가지고있어 오류가
오류입니다
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
의 내 응용 프로그램 build.gradle 파일
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "com.angelakarl.flashchatnewfirebase"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.google.firebase:firebase-database:11.2.2'
compile 'com.google.firebase:firebase-auth:11.2.2'
}
apply plugin: 'com.google.gms.google-services'
입니다 해결 실패 : com.google.firebase : firebase-auth : 11.2.2
오류 : 해결 실패 : com.google.f irebase : 중포 기지 코어 : 11.2.2
오류 : com.google.firebase을 : 중포 기지 데이터베이스 (26, 13)을 해결하는 데 실패 11.2.2
마지막 메모는 11.0.4로 종속성을 변경했습니다. 아직 출시되지 않은 경우 Google에서 gradle 종속 라인 11.2.2 [여기] (https://firebase.google.com/docs/android/setup)를 제공하는 이유는 무엇입니까? – Ang
Google은 종속성 때문에 Maven Repository를 사용합니다. 답을 표시하고 도움이 되었다면 투표하십시오. –
Maven Repository를 추가하면 실제로 작동하지 않습니다. 오류 : (22, 0) 오류 : (22, 0) org.gradle.api.internal.artifacts.dsl.dependencies 유형의 객체에 [build_sdiqbiqltjtd3q6169ye9png $ _clun1close1 $ _closure4 $ _closure5 @ 44a22eb8] 인수에 대해 maven() 메소드를 찾을 수 없습니다 .DefaultDependencyHandler . – Ang