dotnet / dotnet/android-libraries
Latest Xamarin.AndroidX.Fragment and Xamarin.AndroidX.Fragment.Ktx are incompatible with each other
- Dominant language
- C#
- Stars
- 317
- Forks
- 73
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 17
Description
### Android framework version
net8.0-android
### Affected platform version
.NET 8.0.400
### Description
It all boils down to the dependency `Xamarin.AndroidX.Lifecycle.Runtime` being used by the two.
```
Version conflict detected for Xamarin.AndroidX.Lifecycle.Runtime. Install/reference Xamarin.AndroidX.Lifecycle.Runtime 2.8.6 directly to project MyTest to resolve this issue.
MyTest -> Xamarin.AndroidX.Fragment 1.8.4 -> Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.6)
MyTest -> Xamarin.AndroidX.Fragment.Ktx 1.8.4 -> Xamarin.AndroidX.Activity.Ktx 1.9.2.1 -> Xamarin.AndroidX.Lifecycle.Runtime.Ktx 2.8.5.1 -> Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.5.1 && < 2.8.6).
```
### Steps to Reproduce
Reference the packages in the .csproj
```
```
### Did you find any workaround?
_No response_
### Relevant log output
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.