Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Error Code XA0121, deprecated attribute remains in library v28.0.0.3 and MonoDroid v6.0 #238

Open
twildeman opened this issue Apr 5, 2020 · 2 comments

Comments

@twildeman
Copy link

Xamarin.Android Version (eg: 6.0):

MonoDroid v6.0 (api level 23) & Xamarin.Android v10.2

Operating System & Version (eg: Mac OSX 10.11):

W10 pro 2909 18363.720
VS2019 16.5.2
Xamarin 16.5.000.528
Xamarin.Designer 16.5.0.470
Xamarin.Templates 16.5.49
Xamarin.Android SDK 10.2.0.100
Xamarin.iOS and Xamarin.Mac SDK 13.16.0.11

Support Libraries Version (eg: 23.3.0):

v28.0.0.3

Describe your Issue:

Deprecated attribute used causing compilation to fail in VS2019. Checked the dll at C:\Microsoft\Xamarin\NuGet\xamarin.android.support.animated.vector.drawable\28.0.0.3\lib\monoandroid60\Xamarin.Android.Support.Animated.Vector.Drawable.dll for the attribute with ILSpy and it is there.

Error code is XA0121.

Found the same error code and message XA0121 as change in the logs at https://docs.microsoft.com/en-us/xamarin/android/release-notes/10/10.2#new-build-errors-and-warnings-xa0121-xa2000-xa2001

The suggested way to resolve, update to v27 or higher is not correct, as the package version is 28.
Unfortunately I do not have the luxury of updating the MonoDroid version.

Steps to Reproduce (with link to sample solution if possible):

Include any relevant Exception Stack traces, build logs, adb logs:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(515,3): error XA0121: Assembly 'Xamarin.Android.Support.Animated.Vector.Drawable' is using '[assembly: Java.Interop.JavaLibraryReferenceAttribute]', which is no longer supported. Use a newer version of this NuGet package or notify the library author.
{{More of the same with the other support packages}}

@jesux87
Copy link

jesux87 commented Jul 1, 2020

Same issue for xamarin.android.support.design in 28.0.0.1 and 28.0.0.3 on MonoAndroid70

@msgpacket
Copy link

msgpacket commented Aug 15, 2020

Still a problem in VS 2019 16.7.1

edit: support components 28.0.0.3

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

3 participants