在我成功更新到Android Studio 3.1 Canary 9之后,我收到了警告消息
Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018
Run Code Online (Sandbox Code Playgroud)
我知道这个警告不会在我的项目中造成任何问题,至少目前是这样.但我想完全删除它,以便将来不会有任何问题.但在查看我的build.gradle文件后,我找不到任何已调用此警告的代码行.
这是我的build.gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "app.project.virtualdiary"
minSdkVersion 21
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 'com.google.firebase:firebase-auth:11.8.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
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'
implementation …
Run Code Online (Sandbox Code Playgroud) 我在build.gradle(模块:应用程序)中将所有“编译”替换为“实现”,但是我不知道如何在“ compileSdkVersion”中将“编译”更改为“实现”以解决此错误消息(或查看屏幕快照)下面):
配置“编译”已过时,已被“实现”和“ api”替换。它将在2018年底删除。有关更多信息,请参见:http : //d.android.com/r/tools/update-dependency-configurations.html
我需要你的帮助。谢谢!