相关疑难解决方法(0)

仍然收到警告:配置'编译'已经过时,已被'实施'取代

我已经更换的每次出现compileimplementation在我的项目build.gradle,但我仍然得到这样的警告:

在此输入图像描述

我试图在整个项目中寻找"编译"但没有找到匹配.那可能是什么原因?

android build gradle

324
推荐指数
10
解决办法
19万
查看次数

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万
查看次数

如何更改“ compileSdkVersion”以使其与新的“实现” API兼容?

我在build.gradle(模块:应用程序)中将所有“编译”替换为“实现”,但是我不知道如何在“ compileSdkVersion”中将“编译”更改为“实现”以解决此错误消息(或查看屏幕快照)下面):

配置“编译”已过时,已被“实现”和“ api”替换。它将在2018年底删除。有关更多信息,请参见:http : //d.android.com/r/tools/update-dependency-configurations.html

屏幕截图

我需要你的帮助。谢谢!

implementation compilation android-studio

5
推荐指数
0
解决办法
591
查看次数