Android Studio 3.2和3.3 Canary 13中的Java编译器显示了很多警告

时间:2018-10-18 16:10:22

标签: android gradle kotlin

在更新Android Studio时,在显示许多警告后,我无法忽略它们,我试图解决它们,但没有找到任何办法,那么有什么解决办法,我应该更新什么?

Android Studio 3.2

gralde插件版本:classpath  'com.android.tools.build:gradle:3.3.0-alpha13'

app.gradle     应用插件:“ com.android.application”

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

apply plugin: 'io.fabric'

apply plugin: 'kotlin-kapt'

日志

WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'.
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'.
WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.

1 个答案:

答案 0 :(得分:0)

正如您所看到的,这是因为android studio更新了一些内容,所以最好不要使用它们,否则它们将起作用,请忽略警告