Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Xamarin.AndroidX.Fragment and Xamarin.AndroidX.Fragment.Ktx are incompatible with each other #1030

Open
inimirpaz opened this issue Oct 31, 2024 · 2 comments

Comments

@inimirpaz
Copy link

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

	<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
		<PackageReference Include="Xamarin.AndroidX.Fragment" Version="1.8.4" />
		<PackageReference Include="Xamarin.AndroidX.Fragment.Ktx" Version="1.8.4" />
	</ItemGroup>

Did you find any workaround?

No response

Relevant log output

No response

@tungd776
Copy link

tungd776 commented Nov 3, 2024

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


	<ItemGroup Condition="$(TargetFramework.Contains('-android'))">

		<PackageReference Include="Xamarin.AndroidX.Fragment" Version="1.8.4" />

		<PackageReference Include="Xamarin.AndroidX.Fragment.Ktx" Version="1.8.4" />

	</ItemGroup>

Did you find any workaround?

No response

Relevant log output

No response

@inimirpaz
Copy link
Author

Something somewhat similar is happening now with 1.8.5 versions:

Version conflict detected for Xamarin.AndroidX.Lifecycle.Runtime. Install/reference Xamarin.AndroidX.Lifecycle.Runtime 2.8.7 directly to project MyTest to resolve this issue. 
 MyTest -> Xamarin.AndroidX.Fragment.Ktx 1.8.5 -> Xamarin.AndroidX.Core.Core.Ktx 1.15.0 -> Xamarin.AndroidX.Core 1.15.0 -> Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.7) 
 MyTest -> Xamarin.AndroidX.Fragment.Ktx 1.8.5 -> Xamarin.AndroidX.Activity.Ktx 1.9.3 -> Xamarin.AndroidX.Lifecycle.Runtime.Ktx 2.8.6 -> Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.6 && < 2.8.7).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants