Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

API 'variant.getMappingFile()' is obsolete #29

Open
biloco opened this issue May 24, 2020 · 5 comments
Open

API 'variant.getMappingFile()' is obsolete #29

biloco opened this issue May 24, 2020 · 5 comments

Comments

@biloco
Copy link

biloco commented May 24, 2020

I've got a warning from gradle when building an Android project with flurry:symbol-upload:

"build.gradle: API 'variant.getMappingFile()' is obsolete and has been replaced with 'variant.getMappingFileProvider()'."

Version info
Android Studio 3.6.3
com.android.tools.build:gradle:3.6.3
gradle.plugin.com.flurry:symbol-upload:1.2.0

It seems this function was planned to become obsolete at the end of last year (2019).
Any plans to update the code to use newer APIs? Android Studio 4.0 is around the corner and nobody likes last minute surprises.

Thanks

@goemic
Copy link

goemic commented Dec 22, 2020

This warning is still present and you should really update this before agp 5.0 will be used from a new AndroidStudio version!!

WARNING: API 'variant.getMappingFile()' is obsolete and has been replaced with 'variant.getMappingFileProvider()'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getMappingFile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

@samsonpaul87
Copy link

Any update on this issue. We are unable to ship our app update due to this issue.

@suriyasundar92
Copy link
Contributor

@goemic @samsonpaul87 We are working on fixing the issue. Will let you know as soon as we have the fix for it.

@suriyasundar92
Copy link
Contributor

Hi @goemic @samsonpaul87 We have published a newer version of the plugin(3.0.0).
Please try to use it. Please let us know if you face any issue.
https://plugins.gradle.org/plugin/com.flurry.android.symbols

@suriyasundar92
Copy link
Contributor

@goemic @samsonpaul87 @biloco We found a bug in the version that was released yesterday(3.0.0). Please try to use the latest version (3.1.0) that was released today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants