相关疑难解决方法(0)

错误:"配置'编译'已经过时,已被'实现'替换.",即使gradle中没有'compile'

我有以下gradle文件,我找不到任何仍然保证警告" 配置'编译'已经过时并已被'实现'取代的东西."

First Module Gradle文件:

   buildscript {
        repositories { maven { url 'https://maven.fabric.io/public' } }
        dependencies { classpath 'io.fabric.tools:gradle:1.24.1' }
    }
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-kapt'

def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))


android {
    compileSdkVersion 27
    defaultConfig {
        multiDexEnabled true
        applicationId "com.example.something"
        minSdkVersion 19
        targetSdkVersion 27
        testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
        vectorDrawables.useSupportLibrary = true
    }
    dataBinding { enabled = …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio android-gradle-plugin gradle-plugin

11
推荐指数
2
解决办法
1万
查看次数