.NET for Android error XA0121
Article 04/17/2024
1 contributor
Feedback
In this article
Issue
Solution
The behavior implemented in the
<GetAdditionalResourcesFromAssemblies/>
MSBuild task is no longer
supported.
This MSBuild task is a precursor to Xamarin.Build.Download that
enables downloading of Android packages from the internet.
Libraries using any of the following custom assembly-level attributes
will encounter this error:
IncludeAndroidResourcesFromAttribute
NativeLibraryReferenceAttribute
JavaLibraryReferenceAttribute
The Xamarin Support Libraries , can be simply updated to
a newer version on NuGet.
Library authors will need to remove usage of these attributes. Their
functionality was removed in .NET for Android 10.2.