Capacitor: variantOutput.getPackageLibrary

Hi Ionities,

I’m getting the following ominous deprecation warning when building an Ionic/Angular/Capacitor app in Android Studio using ionic cap run android:

WARNING: API 'variantOutput.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'.
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.getPackageLibrary(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Affected Modules: capacitor-android

Doesn’t affect the build, but just wanted to be sure you guys were aware of it.

Cheers,

Béla

1 Like

Now the community knows.

If you also want Ionic and the Capacitor devs to know, best report it at https://github.com/ionic-team/capacitor

Hi! Any news on it ?

1 Like

Appareantly, we shouldn’t worry about that warning. https://github.com/ionic-team/capacitor/issues/1163