Gradle v6.3 如何处理这些弃用警告?

Wri*_*asu 6 android android-gradle-plugin

我在 Android Studio 中将 Android Gradle Plugin 更新为 v3.6.2,并将 Grade 更新为 v6.3。当我使用编译器选项运行构建时--warning-mode all,我收到以下两个弃用警告:

1:

Configure project :app
Internal API constructor DefaultDomainObjectSet(Class<T>) has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use ObjectFactory.domainObjectSet(Class<T>) instead. See https://docs.gradle.org/6.3/userguide/custom_gradle_types.html#domainobjectset for more details.
    at build_gklh609eby8f87cnghyses56.run(E:\Mahalaya\app\build.gradle:1)
    (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Run Code Online (Sandbox Code Playgroud)

2:

Querying the mapped value of map(property(interface org.gradle.api.file.Directory, property(interface org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, E:\Mahalaya\app\build\generated\ap_generated_sources\debug\out)))) before task ':app:compileDebugJavaWithJavac' has completed has been deprecated. This will fail with an error in Gradle 7.0. Consult the upgrading guide for further information: https://docs.gradle.org/6.3/userguide/upgrading_version_6.html#querying_a_mapped_output_property_of_a_task_before_the_task_has_completed
Run Code Online (Sandbox Code Playgroud)

自从我开始在 Android 中编程以来已经没有很长时间了,我不知道如何处理这些警告。我无法理解链接中的内容。任何帮助表示赞赏。

更新: Gradle v6.5 显示相同的警告。

Num*_*lan 3

我认为这是由这些插件之一引起的。我也有:

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)

我还认为他们也会更新这些插件。这样弃用就不会成为问题。