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

前端 未结 21 1513
离开以前
离开以前 2020-12-02 04:19

Using Android Studio 3.3 Canary 11 with the gradle plugin version 3.3.0-alpha11. It throws the following error when trying to sync gradle

WARNI         


        
21条回答
  •  清歌不尽
    2020-12-02 04:54

    EDIT

    This issue has been fixed in Fabric 1.28.0. In your build.gradle of the project level, add the following line:

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

    Previous Answer

    It happens after I updated Android Studio to 3.3.0. apply plugin: 'io.fabric' is the cause. I have sent a bug report to Firebase team about this issue.

    You have 3 options:

    • Wait until the next version of Fabric plugin is released. Check the latest version here.

    • Downgrade to Android Studio 3.2.1.

    • Comment out io.fabric plugin.

    In build.gradle of your app's module:

    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.

提交回复
热议问题