6

I've been using AS 3.3-rc1 with AGP 3.3-rc1 and updated to Gradle 5.0

Since then I've got this warnings.

Does anyone know how can I get rid of them?

Cannot figure out anything from here and here.

Could it be only because they are RC versions or what?

WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
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.
To determine what is calling variant.getExternalNativeBuildTasks(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.

UPDATE:

With my old friend Divide et Impera approach I found the culprit and is Fabric Gradle Plugin

apply plugin: 'io.fabric'

Looking forward for their github repo to see if there's already an issue or not.

Anyway I guess that in the long run these warnings will go away as soon as fabric will make their plugin compliant with the new API.

UPDATE 2

Fabric GitHub issue related with that:

All you have to do is nothing, just w8 for next Fabric Plugin release.

shadowsheep
  • 14,048
  • 3
  • 67
  • 77
  • I guess this question is related with that one: https://stackoverflow.com/questions/52412023/api-variant-getexternalnativebuildtasks-is-obsolete-and-has-been-replaced-wi I leave here also my question for a better indexing of the issue. (unluckily for me I've found it only after all my investigation... ^^) – shadowsheep Dec 06 '18 at 14:32
  • yes! io.fabric is to blame, I confirm! – Сергей Jan 04 '19 at 15:17

1 Answers1

2

Add below line to project/gradle/wrapper/Gradle-wrapper.properties .

android.debug.obsoleteApi=true

visit this link..

shadowsheep
  • 14,048
  • 3
  • 67
  • 77
axita.savani
  • 406
  • 1
  • 6
  • 21