Detected package version outside of dependency constraint: Xamarin.AndroidX.Activity.Ktx 1.10.1.3 requires Xamarin.AndroidX.Activity (>= 1.10.1.3 && < 1.10.2) but version Xamarin.AndroidX.Activity 1.11.0 was resolved.

Kim Strasser 1,751 Reputation points
2025-12-14T10:59:07.7333333+00:00

I changed my Android project´s target framework from .NET 9.0 to .NET 10.0 and then I installed all the NuGet package updates.

Screenshot 2025-12-14 114715

I can debug my Android project on my Google Pixel 8a (Android 16.0 - API 36) and I don´t get an error. But I get this warning:

Detected package version outside of dependency constraint: Xamarin.AndroidX.Activity.Ktx 1.10.1.3 requires Xamarin.AndroidX.Activity (>= 1.10.1.3 && < 1.10.2) but version Xamarin.AndroidX.Activity 1.11.0 was resolved.

In addition, after updating my NuGet packages many yellow triangles are displayed next to the packages, but no other package updates seem to be available:

Screenshot 2025-12-14 113756

Screenshot 2025-12-14 113828

Which package versions should I install to avoid the warnings?

I use Visual Studio Community 2026 Version: 18.1.0.

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Answer accepted by question author
  1. Michael Le (WICLOUD CORPORATION) 6,670 Reputation points Microsoft External Staff Moderator
    2025-12-15T08:11:57.87+00:00

    Hello @Kim Strasser ,

    Don't worry. This happens pretty often with AndroidX libraries since they update frequently, and the binding packages don't always sync up right away.

    If your app builds and runs fine on your Pixel 8a, you can safely keep working and wait for the next round of package updates. The warning is just letting you know about the version mismatch, but it won't necessarily break anything.

    If you want to clear the warning now, you have a couple of options:

    • You can downgrade Xamarin.AndroidX.Activity to version 1.10.1.3 to match what Activity.Ktx expects. Just add this to your .csproj file:
          <PackageReference Include="Xamarin. AndroidX.Activity" Version="1.10.1.3" />
      
      Then do a clean restore to make sure everything picks up the right version.
    • Alternatively, check if there's a newer version of Xamarin.AndroidX.Activity.Ktx that supports Activity 1.11.0. Sometimes these updates roll out a few days apart.

    Since you're on .NET 10.0 which is pretty new, some AndroidX bindings might still be catching up. When new updates do appear, try to keep the related package families aligned—so all your Activity packages (Activity, Activity.Ktx, Activity.Compose) and Lifecycle packages should ideally be on the same minor version.

    If your build pipeline treats warnings as errors or you start seeing runtime issues, definitely address it. Otherwise, you can continue development and wait for the ecosystem to catch up.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.