-
Notifications
You must be signed in to change notification settings - Fork 50
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
Detected package version outside of dependency constraint when using Xamarin.AndroidX.Car.App.App 1.4.0.4 #1044
Comments
@moljac any ideas on this one? |
I'd be happy to troubleshoot this, but unfortunately don't know too much about this aspect of Android. Is there anything I can do to narrow the problem further? Or do I just regen all the libraries. Where to start? |
Usually explicit |
I added PR to the sample Sample: Basically solution is to add latest packages (not all): <ItemGroup Condition="'$(TargetFramework)' == 'net9.0-android'">
<!--
new package created after MAUI release
-->
<PackageReference Include="Xamarin.AndroidX.Car.App.App" Version="1.4.0.4" />
<!--
explicit references to override MAUI used versions
-->
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.8.7.1" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime" Version="2.8.7.1" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime.Ktx" Version="2.8.7.1" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Process" Version="2.8.7.1" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel.Ktx" Version="2.8.7.1" />
<PackageReference Include="Xamarin.AndroidX.Collection.Jvm" Version="1.4.5.1" />
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.4.5.1" />
<PackageReference Include="Xamarin.AndroidX.Activity" Version="1.9.3.1" />
<PackageReference Include="Xamarin.AndroidX.Activity.Ktx" Version="1.9.3.1" />
</ItemGroup> |
Ok, so I analyzed the Maui9 project in this repo and these are the "warnings"
In the issue-1044 branch of the repo, I included the following references.
Unfortunately, I ended up with the following error and warning
In looking at the latest config.json in the repo, all of the 2.8.7.1 versions are specified. Is the problem I'm having due to the version of Android-Libraries that MAUI 9 / .NET9 uses? If so, how do I find out what version of "Xamarin.AndroicX.Car.App.App" to use? |
Oops, I just saw your message. I'll try that. Thank You. |
Hey @moljac your PR worked. Thank you for the quick fix. This should help me in the future if I run into this again |
Great that I could help. Remember: it might [will] happen again, but the workaround is to add explicit dependencies. We work on [re]solution, but it is not trivial. |
Android framework version
net9.0-android
Affected platform version
9.0.100
Description
I'm upgrading my Android Auto sample application Chaaos from .NET8 to .NET9. I'm including the latest Xamarin.AndroidX.Car.App.App (1.4.0.4) package. When building I get the following Warnings.
The main branch has the .NET8 version, and the dotnet9 branch contains the updated version. Also see a simple MAUI app in the following section that illustrates this issue.
Steps to Reproduce
I have created a repro basic MAUI App. See AndroidX-Repro. There is a Maui8 project and a Maui9 project. You can see that the MAUI8 project does not generate the Warnings, where the Maui9 project does.
Also Note that the Maui8 version has a fix for #18665
Did you find any workaround?
Not at the moment.
Relevant log output
The text was updated successfully, but these errors were encountered: