Answer the question
In order to leave comments, you need to log in
Why is the Configuration 'compile' error displayed?
Good day. I get an error: WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. But there is not a single element containing compile in the code.
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'
Answer the question
In order to leave comments, you need to log in
What do you have in another gradle? Is there a classpath 'com.google.gms:google-services:3.2.0' ?
Yes. I have it spelled out exactly like that.
And
I have a red line with 'com.android.support:appcompat-v7:27.1.1
' 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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question