Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assembly 'Xamarin.Android.Support.v4' is using '[assembly: Java.Interop.JavaLibraryReferenceAttribute]', which is no longer supported. #69

Closed
jimiatnymbl opened this issue Aug 4, 2020 · 2 comments

Comments

@jimiatnymbl
Copy link

Bug

Updating to the latest Xamarin.Forms (v4.7.0.1239), I am now receiving the following error:

"error XA0121: 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."

The only package in my solution with a Xamarin.Android.Support.v4 dependency is Xam.Plugins.Notifier.

Plugin Version: 3.0.1
Platform: Android 10, API 29
Device/Hardware: N/A

Expected behavior

Should be able to compile solution with Xam.Plugins.Notifier

Actual behavior

Error above.

@jimiatnymbl
Copy link
Author

jimiatnymbl commented Oct 5, 2020

Upgraded to Xamarin.Forms 4.8 (along with Visual Studio updates) and I am no longer receiving this error for Xam.Plugins.Notifier. Oddly enough, I'm now receiving it for something else. For anyone reading this, more information on this error can be found here:

https://docs.microsoft.com/en-us/xamarin/android/release-notes/10/10.2#xa0121-error-for-old-xamarinandroidsupport-library-versions

@JKennedy24
Copy link

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

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

No branches or pull requests

2 participants