Не удалось разрешить: com.google.firebase: firebase-core: 16.0.5 - PullRequest
0 голосов
/ 27 октября 2018

Я перепробовал все решения, найденные в Интернете, но все равно получаю следующую ошибку:

Failed to resolve: com.google.firebase:firebase-core:16.0.5

В чем может быть причина?Я проверил весь список реализации завершен и с правильными версиями.Я проверил также classpaths и все остальное.Но ничего не работает !!

build.grande (Модуль)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.example.ves.gennaio3"
        minSdkVersion 15
        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 {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:support-v4:26.1.0'
    implementation 'com.android.support:recyclerview-v7:26.1.0'
    implementation 'com.google.firebase:firebase-auth:16.0.5'
    implementation 'com.google.firebase:firebase-core:16.0.5'
    implementation 'com.google.firebase:firebase-database:16.0.4'
    implementation 'com.google.firebase:firebase-ml-vision:18.0.1'
    implementation 'com.google.firebase:firebase-firestore:17.1.2'
    implementation 'com.github.satyan:sugar:1.5'
    implementation 'com.rmtheis:tess-two:6.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

apply plugin: 'com.google.gms.google-services'

build.grandle (Проект)

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:4.0.2'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

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

Ответы [ 2 ]

0 голосов
/ 21 ноября 2018

@ Решение Johns не сработало для нас, так как мы столкнулись с другой известной проблемой с этой версией (см. https://developers.google.com/android/guides/releases)

. Для нас сработало использование псевдонима firebase-core:

изменить com.google.firebase:firebase-core:16.0.4 на

com.google.firebase:firebase-analytics:16.0.5
0 голосов
/ 27 октября 2018

С https://firebase.google.com/docs/android/setup похоже, что 16.0.4 является последней версией

com.google.firebase:firebase-core:16.0.4
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...