Edit

Share via


.NET for Android error XA1039

Example messages

error XA1039: The Android Support libraries are not supported in .NET 9 and later, please migrate to AndroidX. See https://aka.ms/xamarin/androidx for more details.

Issue

Outdated "Android Support Library" packages are no longer supported in .NET 9:

  • .NET for Android.Arch.*
  • .NET for Android.Support.*

The underlying Java libraries are no longer supported by Google since the final 28.0.0 release. See the Android Support Library Documentation for details.

Some example prefixes of the newer, supported AndroidX packages are:

  • .NET for AndroidX.*
  • .NET for AndroidX.Arch.*

For more information about the Android Support libraries or AndroidX, see:

Solution

Remove all NuGet package references to .NET for Android.Support or .NET for Android.Arch in favor of the new AndroidX equivalents.

This also can occur if you are using a NuGet package with a transitive dependency on the Android support packages. In this case, you will need to remove the package or contact the package author.

See the AndroidX migration documentation for details.