localnotificationsplugin icon indicating copy to clipboard operation
localnotificationsplugin copied to clipboard

Upgrade Xamarin.Android.Support libraries to use AndroidX libs

Open JKennedy24 opened this issue 5 years ago • 3 comments

There is currently a bug mentioned here https://github.com/edsnider/localnotificationsplugin/issues/69#issuecomment-760107403

which is caused by using an outdated Xamarin.Android.Support.V4 version. It would be worthwhile upgrading that dependency, but at the same time swapping over to support the AndroidX libraries

JKennedy24 avatar Jan 14 '21 10:01 JKennedy24

Same as @JKennedy24 said. This is the message reported:

Assembly 'Xamarin.Android.Support.v4' is using '[assembly: Java.Interop.JavaLibraryReferenceAttribute]', which is no longer supported. Use a newer version of this NuGet package or notify the library author.

mcfoi avatar Jan 25 '21 08:01 mcfoi

To fix this error you need to install the Xamarin.Android.Support.V4 library manually and install V27.0.2 or higher.

looks like this github project is not supported.

Ideally it would upgrade to use the new AndroidX libraries, but for now manually installing the support package is a workaround

JKennedy24 avatar Jan 25 '21 08:01 JKennedy24

@JKennedy24 Thaks! Installing Xamarin.Android.Support.V4 pakage using NuGet Manager on just the Xamarin.Android part of the project did the trick. Thanks

mcfoi avatar Jan 25 '21 12:01 mcfoi