зависимость от облачных функций в Android - PullRequest
0 голосов
/ 08 января 2019

Когда я добавляю зависимость от firebase-функции к своему модулю gradle (извините, ребята, за длинный пост:

implementation 'com.google.firebase:firebase-functions:16.1.3'

после синхронизации проекта выдает следующие ошибки:

enter image description here

buildscript {
    ext.kotlin_version = '1.3.11'
    repositories {
        google()
        jcenter()
        maven {
            url 'https://maven.fabric.io/public'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.2.0'
//    classpath 'com.google.firebase:firebase-plugins:1.1.5'
        classpath 'io.fabric.tools:gradle:1.27.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

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

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

когда я удаляю комментарии к этому

classpath 'com.google.firebase:firebase-plugins:1.1.5'

выдает следующие ошибки при синхронизации gradle:

enter image description here

...