小编Sau*_*rma的帖子

Android Studio build.gradle警告消息

在我成功更新到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)

android android-studio android-gradle-plugin

63
推荐指数
4
解决办法
5万
查看次数