У вас проблема с порядком применения плагинов.
apply plugin: 'com.google.gms.google-services'
Это всегда должно быть в конце файла.
Кроме того, apply plugin: "io.fabric"
следует применять после com.android.application
.
Если у вас все еще есть путаница с build.gradle
.Отредактируйте свой вопрос, включая buid.gradle
файлы из app и корневой проект , и сообщите мне, комментируя этот ответ.
apply plugin: 'com.android.application'
apply plugin: "io.fabric"
apply plugin: 'kotlin-android'
apply plugin: "kotlin-android-extensions"
apply plugin: "kotlin-kapt"
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.trevexs.sengaapp"
minSdkVersion 19
targetSdkVersion 28
versionCode 5
versionName "1.5.0"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
versionNameSuffix "-DEBUG"
}
}
dataBinding {
enabled = true
}
testOptions {
unitTests {
returnDefaultValues = true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.media:media:1.0.1'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-core-ui:1.0.0'
implementation 'com.romandanylyk:pageindicatorview:1.0.2'
implementation 'com.google.code.gson:gson:2.8.5'
//fire-base staff
implementation 'com.firebaseui:firebase-ui-auth:4.3.1'
implementation 'com.google.firebase:firebase-auth:18.0.0'
implementation 'com.google.android.gms:play-services-auth:17.0.0'
implementation 'com.google.firebase:firebase-firestore:20.1.0'
implementation 'com.google.firebase:firebase-core:17.0.0'
implementation 'com.google.firebase:firebase-storage:18.0.0'
// Required for instrumented tests
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:core:1.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
testImplementation "org.mockito:mockito-core:1.10.19"
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
// Optional -- Hamcrest library
androidTestImplementation 'org.hamcrest:hamcrest-library:1.3'
// Optional -- UI testing with Espresso
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// Optional -- UI testing with UI Automator
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
androidTestImplementation 'androidx.annotation:annotation:1.0.1'
//kotlin staff
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlin_version}"
//material design staff
implementation 'com.google.android.material:material:1.0.0'
//circular image
implementation 'de.hdodenhof:circleimageview:3.0.0'
//crashlytics
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
//picasso
implementation 'com.squareup.picasso:picasso:2.71828'
//dialog flow dependencies
implementation 'com.github.kittinunf.fuel:fuel-android:2.1.0'
implementation 'com.github.bassaer:chatmessageview:2.0.1'
implementation 'ai.api:sdk:2.0.7'
implementation 'ai.api:libai:1.6.12'
}
apply plugin: 'com.google.gms.google-services'