@STriger
;ll;l

Почему высвечивается ошибка Configuration 'compile'?

Доброго времени суток.У меня высвечивается ошибка:WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.Но при этом в коде нет ни одного элемента содержащего compile.
apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.example.admin.mysql"
        minSdkVersion 15
        targetSdkVersion 27
        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:27.1.1"
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation "com.google.firebase:firebase-database:11.6.2"
    implementation 'com.google.firebase:firebase-core:11.8.0'
    implementation 'com.google.firebase:firebase-auth:11.6.0'
    testImplementation 'junit:junit:4.12'
    //androidTestImplementation 'com.android.support.test:runner:1.0.1'
    //androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

apply plugin: 'com.google.gms.google-services'
  • Вопрос задан
  • 1214 просмотров
Пригласить эксперта
Ответы на вопрос 2
semennovikov123
@semennovikov123
Backend Developer
Что у вас в другом gradle? Там прописан classpath 'com.google.gms:google-services:3.2.0' ?
Ответ написан
@STriger Автор вопроса
;ll;l
Да.У меня там прописано именно так.
И у меня подсвечено красным строка с 'com.android.support:appcompat-v7:27.1.1'
Вот скрин:5b09600b634d1842966648.png
И там высвечивается ошибка:Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.goog... or updating the version of com.google.android.gms to 11.4.2.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы