简体   繁体   English

API'variable.getExternalNativeBuildTasks()'已过时,已替换为'variant.getExternalNativeBuildProviders()

[英]API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()

Using Android Studio 3.3 Canary 11 with the gradle plugin version 3.3.0-alpha11 . 使用Android Studio 3.3 Canary 11和gradle插件版本3.3.0-alpha11 It throws the following error when trying to sync gradle 尝试同步gradle时,它会引发以下错误

WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been 
replaced with 'variant.getExternalNativeBuildProviders()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration- 
avoidance
Affected Modules: app

Clicking on the error leads me to this line in the gradle file 单击错误会将我引导至gradle文件中的此行

applicationVariants.all { variant ->
            variant.outputs.all {
                outputFileName = "${variant.name}-${variant.versionName}.apk"
            }
        }

What exactly do I need to change here? 我到底需要改变什么?

project build.gradle project build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        mavenCentral() // jcenter() works as well because it pulls from Maven Central
        maven { url "https://maven.google.com" }
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0-alpha11'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath "io.realm:realm-gradle-plugin:4.1.1"
        classpath 'com.google.gms:google-services:3.2.1'
        classpath 'com.google.firebase:firebase-plugins:1.1.5'
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://maven.google.com" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

// Define versions in a single place
ext {
    // Sdk and tools
    minSdkVersion = 21
    targetSdkVersion = 27
    compileSdkVersion = 27
    buildToolsVersion = '27.0.3'

    // App dependencies
    supportLibraryVersion = '27.1.1'
    appCompactLibraryVersion = '27.1.1'
    playServicesVersion = '15.0.1'
    firebaseVersionCore = '16.0.1'
    firebaseVersionPerf = '16.0.0'
    firebaseVersionMessaging = '17.1.0'

    //lottie
    lottieVersion = '2.5.0'
}

app build.gradle app build.gradle

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.25.4'
    }
    buildscript {
        repositories {
            maven { url "https://maven.google.com" }
            maven { url 'https://maven.fabric.io/public' }
            mavenCentral()

        }

        dependencies {
            // These docs use an open ended version so that our plugin
            // can be updated quickly in response to Android tooling updates

            // We recommend changing it to the latest version from our changelog:
            // https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
            classpath 'io.fabric.tools:gradle:'
        }
    }
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.firebase-perf'
repositories {
    maven { url 'https://maven.fabric.io/public' }
}

apply plugin: 'io.fabric'
apply plugin: 'realm-android'

android {

    realm {
        syncEnabled = false
    }

    dexOptions {
        javaMaxHeapSize "4g"
    }

    compileSdkVersion rootProject.ext.compileSdkVersion

    defaultConfig {
        applicationId "example.com"
        minSdkVersion rootProject.ext.minSdkVersion
        multiDexEnabled true
        versionCode mVersionCode
        versionName mVersionName
        vectorDrawables.useSupportLibrary = true

    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    buildTypes {

        applicationVariants.all { variant ->
            variant.outputs.all {
                outputFileName = "${variant.name}-${variant.versionName}.apk"
            }
        }

        release {
            shrinkResources true
            minifyEnabled true
            useProguard true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            lintOptions {
                disable 'MissingTranslation'
            }

            applicationVariants.all { variant ->
                variant.outputs.all {
                    outputFileName = "${variant.name}-${variant.versionName}.apk"
                }
            }

        }
        debug {
            shrinkResources true
            minifyEnabled true
            useProguard true
            debuggable true
            versionNameSuffix '-DEBUG'
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'debug-proguard-rules.pro'

            ext.enableCrashlytics = false
            crunchPngs false

        }
    }

    flavorDimensions "default"

    lintOptions {

        checkReleaseBuilds false

    }

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
    }
    buildToolsVersion '28.0.2'
}

configurations {
    implementation.exclude group: "org.apache.httpcomponents", module: "httpclient"
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    implementation "com.android.support:appcompat-v7:$rootProject.appCompactLibraryVersion"
    implementation "com.android.support:support-compat:$rootProject.supportLibraryVersion"
    implementation "com.android.support:mediarouter-v7:$rootProject.supportLibraryVersion"
    implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
    implementation "com.android.support:design:$rootProject.supportLibraryVersion"


    api 'com.squareup.retrofit2:retrofit:2.4.0'
    api 'com.squareup.okhttp3:okhttp:3.11.0'
    api 'com.squareup.okhttp3:logging-interceptor:3.10.0'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.daimajia.easing:library:2.0@aar'
    implementation 'com.daimajia.androidanimations:library:2.3@aar'

    implementation 'com.akexorcist:googledirectionlibrary:1.0.5'
    implementation 'io.reactivex:rxandroid:1.2.1'
    implementation 'io.reactivex:rxjava:1.3.0'
    // Wifi hotspot library
    implementation 'cc.mvdan.accesspoint:library:0.2.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'org.jsoup:jsoup:1.10.3'
    api "com.airbnb.android:lottie:$rootProject.lottieVersion"
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    testImplementation 'junit:junit:4.12'
    implementation 'com.jakewharton:butterknife:8.8.1'

    debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
    releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'

    implementation 'com.googlecode.libphonenumber:libphonenumber:8.2.0'

    implementation "com.google.android.gms:play-services-base:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-cast-framework:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-auth:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-identity:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-awareness:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-cast:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-drive:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-location:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-maps:$rootProject.playServicesVersion"

    implementation "com.google.firebase:firebase-core:$rootProject.firebaseVersionCore"
    implementation "com.google.firebase:firebase-perf:$rootProject.firebaseVersionPerf"
    implementation "com.google.firebase:firebase-messaging:$rootProject.firebaseVersionMessaging"
    implementation "com.google.firebase:firebase-analytics:$rootProject.firebaseVersionCore"


    api('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
        transitive = true
    }
    api('com.crashlytics.sdk.android:answers:1.4.1@aar') {
        transitive = true
    }
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
    api project(path: ':libraryBTHelper')
    api project(':bkk_rush')

    debugApi 'com.amitshekhar.android:debug-db:1.0.3'
    api "org.jdeferred:jdeferred-android-aar:1.2.6"
    implementation 'com.android.support:gridlayout-v7:27.1.1'
}

apply plugin: 'com.google.gms.google-services'

I have skipped out a few constants and other sensitive information in the app/build.gradle file. 我在app / build.gradle文件中跳过了一些常量和其他敏感信息。

The issue has been fixed in their latest release 'io.fabric.tools:gradle:1.30.0' 该问题已在最新版本'io.fabric.tools:gradle:1.30.0'

Please update your both gradle fabric tools with 1.30.0 请使用1.30.0更新您的两个gradle结构工具

buildscript {
  // ... repositories, etc. ...

   dependencies {
       // ...other dependencies ...
       classpath 'io.fabric.tools:gradle:1.30.0'
   }
}

For more details https://github.com/firebase/firebase-android-sdk/issues/198#issuecomment-473435453 有关详细信息, 请访问https://github.com/firebase/firebase-android-sdk/issues/198#issuecomment-473435453

EDIT 编辑

This issue has been fixed in Fabric 1.28.0 . Fabric 1.28.0中已修复此问题。 In your build.gradle of the project level, add the following line: 在项目级别的build.gradle中,添加以下行:

classpath 'io.fabric.tools:gradle:1.28.1'

Previous Answer 上一个答案

It happens after I updated Android Studio to 3.3.0. 它发生在我将Android Studio更新到3.3.0之后。 apply plugin: 'io.fabric' is the cause. apply plugin: 'io.fabric'是原因。 I have sent a bug report to Firebase team about this issue. 我已向Firebase小组发送了有关此问题的错误报告。

You have 3 options: 你有3个选择:

  • Wait until the next version of Fabric plugin is released. 等到下一版Fabric插件发布。 Check the latest version here . 这里查看最新版本。

  • Downgrade to Android Studio 3.2.1 . 降级到Android Studio 3.2.1

  • Comment out io.fabric plugin. 注释掉io.fabric插件。

In build.gradle of your app's module: 在app的模块的build.gradle中:

apply plugin: 'com.android.application'
// apply plugin: 'io.fabric' <== this plugin causes the error

However, you can still build and run your projects even though this error appears. 但是,即使出现此错误,您仍可以构建和运行项目。 Just ignore it. 只是忽略它。

in application build.gradle , downgrade to this stable version of gradle : 在应用程序build.gradle中,降级到这个稳定版本的gradle:

classpath 'com.android.tools.build:gradle:3.2.1'

It happens after I updated Android Studio to 3.3 , temp solution until they fix it ! 它发生在我将Android Studio更新为3.3,临时解决方案之后,直到他们修复它!

edit: you don't need to downgrade your android studio ! 编辑:你不需要降级你的android工作室!

UPDATE As of today you can use classpath 'io.fabric.tools:gradle:1.28.0' to fix this issue ! 更新截至今天,您可以使用classpath 'io.fabric.tools:gradle:1.28.0'来解决此问题!

If commenting out Crashlytics 's plugin io.fabric on the app gradle file worked for you temporarily 如果在应用程序gradle文件中评论出Crashlytics的插件io.fabric暂时为你工作

//apply plugin: 'io.fabric'

Then upgrading your fabric gradle dependencies on the Project gradle file will permanently solve the issue: 然后,在Project gradle文件上升级fabric gradle依赖项将永久解决问题:

classpath 'io.fabric.tools:gradle:1.27.0'

NB: this doesn't remove the warnings but let you use Crashlytics with AS3.3+ 注意:这不会删除警告但让你使用Crashlytics和AS3.3 +

不确定实际问题是什么,但是从项目中解决了与崩解相关的依赖关系解决了问题。

It's confirmed as bug for Crashlytics and they are working on it. 它被确认为Crashlytics的错误,他们正在努力。

https://issuetracker.google.com/issues/116408637 https://issuetracker.google.com/issues/116408637

Quoted from Google assignee: 引自Google受让人:

je...@google.com #23 Jan 23, 2019 01:40AM je ... @ google.com#23 Jan 23,20199 01:40 AM
Hi all, 大家好,

Thank you for your patience. 感谢您的耐心等待。

It looks like the bug in all cases is coming from crashlytics and I've filed a bug with them. 看起来所有情况下的错误都来自崩溃,我已经向他们提交了一个错误。

I will keep you updated on the status. 我会告诉你最新的状态。

For me, my debug app is working fine on my device just by running and ignoring the warning without commenting Crashlytics or Fabric. 对我来说,我的调试应用程序在我的设备上工作正常,只需运行并忽略警告而不评论Crashlytics或Fabric。 I have not try for production. 我没有尝试过制作。

Update: 更新:

Google Issue Tracker had mark this issues as Won't Fix (Infeasible) because all the issues was from Crashlytics, and let fixes done by Crashlytics team (despite they are same Googler...). Google Issue Tracker将此问题标记为“无法修复(不可行)”,因为所有问题都来自Crashlytics,并且让Crashlytics团队完成修复(尽管他们是Google员工......)。

They suggest to follow this link for Crashlytics updates: 他们建议按照此链接进行Crashlytics更新:

https://github.com/firebase/firebase-android-sdk/issues/198 https://github.com/firebase/firebase-android-sdk/issues/198

Note: I'm still using Android Studio 3.3 with io.fabric.tools:gradle:1.26.0 without commenting any of Craslytics and it's works fine on my debug app. 注意:我仍在使用Android Studio 3.3和io.fabric.tools:gradle:1.26.0而不评论任何Craslytics,它在我的调试应用程序上工作正常。

Update: 更新:

I can confirm now that it works fine on my production/release version app. 我现在可以确认它在我的生产/发布版本应用程序上工作正常。 How do I know it works? 我怎么知道它有效? Because it had sent me back a crash reports -_-' 因为它已经给我发回了崩溃报告-_-'

Anyway, just ignore the warning, they should fix it eventually. 无论如何,只要忽略警告,他们最终应该修复它。

Aww, just read that it had fixed with fabric 1.28.0 :) 哇,刚刚读到它已经修复了面料1.28.0 :)

Latest news from 01/24/2019 最新消息来自01/24/2019

在此输入图像描述

Info here https://issuetracker.google.com/issues/116408637 有关信息,请访问https://issuetracker.google.com/issues/116408637

We will need to wait untill Crashlytics came up with a solution, here is GitHub issue opened 我们需要等待直到Crashlytics想出一个解决方案,这里是GitHub问题打开了

https://github.com/firebase/firebase-android-sdk/issues/198 https://github.com/firebase/firebase-android-sdk/issues/198

The only way I'm using as right now to not comment io.fabric plugin is downgrading my gradle and upgrading my fabric classpath (this is working on my production app) 我现在使用的唯一方法是不评论io.fabric插件是降级我的gradle并升级我的结构类路径(这适用于我的生产应用程序)

 dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'io.fabric.tools:gradle:1.27.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

As it was said, the problem is with Fabric/Crashlytics. 如上所述,问题在于Fabric / Crashlytics。

apply plugin: 'io.fabric'

It's a bug on Crashlytics/Firebase side, please check the following link and see the bug' status : https://github.com/firebase/firebase-android-sdk/issues/198 这是Crashlytics / Firebase方面的一个错误,请查看以下链接并查看错误状态: https//github.com/firebase/firebase-android-sdk/issues/198

the issue-tracker might refer to "lazy task configuration" - 问题跟踪器可能会引用“懒惰任务配置” -

that's at least what task configuration avoidance suggests. 这至少是避免任务配置的建议。

but one possibly can prevent the access to this obsolete method of BaseVariantImpl , when variant.outputs.all won't access that method (internally) - or when checks can prevent the access; 但是当variant.outputs.all不能访问该方法(内部)时,或者当检查可以阻止访问时,可能会阻止访问这个过时的BaseVariantImpl方法; or when accessing the variant by it's name; 或者当用它的名字访问变体时; or somehow disable the external native build tasks for the variant. 或以某种方式禁用变体的外部本机构建任务。 also see the single-variant project sync option, which rather seems related. 还可以看到单变量项目同步选项,这看起来很相关。

or wait for build-tools 3.3.0-alpha12 or 3.3.0-beta1 ...this is not even a release candidate , therefore investing to much time might be pointless - except using it to file another bug-report. 或等待构建工具 3.3.0-alpha123.3.0-beta1 ......这甚至都不是release candidate ,因此投入大量时间可能毫无意义 - 除非使用它来提交另一个错误报告。

the new quick feedback 新的快速反馈 快速反馈 button still looks the most promising. 按钮仍然看起来最有前途。

This happens due to the update of your Android Studio from Android Studio 3.2.0 to Android Studio 3.3.0. 这是因为您的Android Studio从Android Studio 3.2.0更新到Android Studio 3.3.0。 Update Your Gradle Dependencies (Project)of IO.Fabric. 更新IO.Fabric的Gradle依赖项(Project)。 Like: 喜欢:

classpath 'io.fabric.tools:gradle:1.27.1'

and also update your Kotlin version to 并将您的Kotlin版本更新为

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.20"

This will resolve this issues. 这将解决这个问题。 Thanks 谢谢

For me, I followed these steps: 1. upgrade the Gradle dependency on project level build.gradle. 对我来说,我遵循以下步骤:1。升级项目级build.gradle的Gradle依赖项。

        classpath 'io.fabric.tools:gradle:1.28.0'
  1. add this plugin dependency below apply plugin: 'com.android.application' in the app level build.gradle. 在应用程序级别build.gradle中添加此插件依赖项以下应用插件:'com.android.application'

      apply plugin: 'io.fabric' 
  2. Sync the project with gradle files. 使用gradle文件同步项目。

this has been fixed in the latest release of the Fabric gradle plugin, 1.28.0, which went live today. 这已在最新版本的Fabric gradle插件1.28.0中修复,该插件今天上线。 Have this in your top-level build.gradle: 在您的顶级build.gradle中有这个:

buildscript {
// ... repositories, etc. ...

dependencies {
    // ...other dependencies ...
    **classpath 'io.fabric.tools:gradle:1.28.0'**
}

Build log prints how to debug this, particularly you need to run build with -Pandroid.debug.obsoleteApi=true , that'll print stack-trace of call to deprecated API and you'll be able to figure which plugin/code calls it. 构建日志打印如何调试它,特别是你需要使用-Pandroid.debug.obsoleteApi=true运行构建,这将打印堆栈跟踪调用已弃用的API,你将能够确定哪个插件/代码调用它。

If it ends up being your code — use new Provider API ( read Lazy Task Configuration doc ) 如果它最终成为您的代码 - 使用新的Provider API( 阅读Lazy Task Configuration doc

If it comes from other plugin — report to them with stack-trace and warning message and maybe submit a patch. 如果它来自其他插件 - 使用堆栈跟踪和警告消息向他们报告并可能提交补丁。 As in this case its related to io.fabric issue. 在这种情况下,它与io.fabric问题有关。

When I opened the project, I pressed the Run migrations button appeared on the right bottom corner from Android Studio . 当我打开项目时,我按下Android Studio右下角出现的Run migrations按钮。 A migration was performed and the problem was solve without commenting out the Crashlytics dependency. 执行迁移并解决问题,而没有评论Crashlytics依赖项。

在此输入图像描述

Changing source compatibility in module build.gradle file to Java 8 fixes the issue 将模块build.gradle文件中的源兼容性更改为Java 8可以解决此问题

compileOptions {
    sourceCompatibility 1.8
    targetCompatibility 1.8
}

Be sure to rebuild the project after adding those lines 确保在添加这些行后重建项目

这将修复错误:在任务栏上单击工具 - > Kotlin->在项目中配置Kotlin

In my case, I needed to use io.fabric plugin, and the solution was, to update to the latest fabric tools gradle version: 在我的情况下,我需要使用io.fabric插件,解决方案是,更新到最新的Fabric工具gradle版本:

classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'io.fabric.tools:gradle:1.27.0'

For those who need to keep the Fabric plugin applied, the temporary solution is to go back to the previous version of the gradle at the project level. 对于那些需要保持Fabric插件应用的人来说,临时解决方案是在项目级别返回上一版本的gradle。

Change the classpath version to com.android.tools.build:gradle:3.2.1 . 将类路径版本更改为com.android.tools.build:gradle:3.2.1

It was a problem with latest gradle (in my case 3.3.2 ) version and Fabric.io plugin. 这是最新gradle (在我的情况下为3.3.2 )版本和Fabric.io插件的问题。 It is now solved by the new version Users should have this in their top-level build.gradle : 它现在由新版本解决用户应该在他们的顶级build.gradle

buildscript {
   // ... repositories, etc. ...

    dependencies {
        // ...other dependencies ...
        classpath 'io.fabric.tools:gradle:1.28.0'
    }
}

Fix is update the root build gradle files to latest. 修复是将根构建gradle文件更新为最新。 And this answer hold true now. 而这个答案现在也成立了。 in fureture again new change will be implementing by gradle and android SDK. 在fureture再次新的变化将由gradle和android SDK实现。 At times answer will vary in due course of time. 有时,答案会在适当的时候有所不同。

repositories {
    maven { url "https://jitpack.io" }
    maven {
        url 'https://maven.fabric.io/public'
    }
    google()
    jcenter()

}
dependencies {

    classpath 'com.android.tools.build:gradle:3.5.0'
    classpath 'com.google.gms:google-services:4.3.0'
    classpath 'io.fabric.tools:gradle:1.30.0'
}

first of all this is not an error 首先,这不是一个错误

it's warning 这是警告

and its show up when update gradle to 3.3.0 Often occur because io.fabric so wait until the update fabric current version where warning is still show up is 'io.fabric.tools:gradle:1.27.1' 当更新gradle到3.3.0时它会出现经常发生因为io.fabric所以要等到更新结构当前版本警告仍然显示为'io.fabric.tools:gradle:1.27.1'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 警告:API&#39;variable.getExternalNativeBuildTasks()&#39;已过时,已替换为&#39;variant.getExternalNativeBuildProviders()&#39; - WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()' API&#39;variable.getExternalNativeBuildTasks()&#39;已过时 - API 'variant.getExternalNativeBuildTasks()' is obsolete API &#39;variant.getMergeResources()&#39; 已过时并已替换为 &#39;variant.getMergeResourcesProvider()&#39; - API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()' variant.getAssemble()已过时,并已替换为variant.getAssembleProvider() - variant.getAssemble() is obsolete and has been replaced with variant.getAssembleProvider() API&#39;variant.getJavaCompileProvider()&#39;已过时,并已替换为&#39;variant.getJavaCompileProvider()&#39; - API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()' API“ variant.getJavaCompile()”已过时,并已替换为“ variant.getJavaCompileProvider()”。 它将在2019年底删除 - API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'. It will be removed at the end of 2019 Android Gradle Plugin(警告)API&#39;variable.getMergeResources()&#39;已过时,已替换为&#39;variant.getMergeResourcesProvider()&#39; - Android Gradle Plugin (Warning) API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()' 警告:API &#39;variant.getMappingFile()&#39; 已过时并已替换为 &#39;variant.getMappingFileProvider()&#39; - WARNING: API 'variant.getMappingFile()' is obsolete and has been replaced with 'variant.getMappingFileProvider()' 警告:API &#39;variant.getJavaCompile()&#39; 已过时并已替换为 &#39;variant.getJavaCompileProvider()&#39; - WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()' “警告:API&#39;variant.getMergeResources()&#39;已过时,并已替换为&#39;variant.getMergeResourcesProvider()&#39;。” - “WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM