FAILURE: сборка не удалась с исключением.
Что пошло не так: не удалось определить зависимости задачи ': app: compileDebugJavaWith Javac'.
В проекте «приложение» разрешенная зависимость библиотеки служб Google Play зависит от другой в конкретной версии (например, «[16.0. 0]», но не разрешается в этой версии. Поведение выставлено библиотекой будет неизвестно.
Ошибка зависимости: com.google.firebase: firebase-measure-connector-impl: 16.0.1 -> com.google. android .gms: play- servi c es-measure-base @ [16.0.0], но версия play-services-measure-base была 17.2.0.
Следующие зависимости - это зависимости проекта, которые прямые или транзитивные зависимости, которые приводят к художественному действию с этой проблемой. - «Приложение» проекта зависит от com.google. firebase:firebase-core@16.0.1 - «приложение» проекта зависит от com.google. firebase:firebase-analytics@17.2.0
Для расширенной отладочной информации выполните Gradle из командной строки с помощью ./gradl ew --info: app: assemblyDebug, чтобы увидеть пути привязки к артефакту. Это сообщение об ошибке было получено от подключаемого модуля google-services Gradle, сообщите о проблемах по адресу https: //
github.com/google/play-services-plugins и отключите его, добавив "googleServices {disableVersionCheck = false}" в свой build.gradle файл.
Вот мой уровень приложения build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 27
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.santosenoque.chatapp"
minSdkVersion 16
targetSdkVersion 27
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
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'
implementation "com.android.support:support-v4:27.1.1"
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-analytics:17.2.0'
}
apply plugin: 'com.google.gms.google-services'
Уровень проекта build.gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Я скачал этот проект с Github, пожалуйста помогите мне решить эту ошибку.