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

前端 未结 21 1494
离开以前
离开以前 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:31

    Changing source compatibility in module build.gradle file to Java 8 fixes the issue

    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
    

    Be sure to rebuild the project after adding those lines

提交回复
热议问题