Closed jfversluis closed 1 month ago
Yea, it does both seem to work and not work - I've been adding it to the samples to work around but some users are telling me that it's also not making a difference.
God I hate Android reference issues.
I might as well directly reference it in the package, but I don't quite understand the underlying issue.
I just ran into the same issue after updating my nuget packages to the latest. I reverted back and its building again.
Small list of Android package updates:
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
<PackageReference Include="Xamarin.Firebase.Messaging">
<Version>123.3.1.2</Version><!-- FROM -->
<Version>124.0.0</Version><!-- TO -->
</PackageReference>
<PackageReference Include="Xamarin.Google.Dagger">
<Version>2.48.1.2</Version><!-- FROM -->
<Version>2.50.0</Version><!-- TO -->
</PackageReference>
<PackageReference Include="Xamarin.GooglePlayServices.Base">
<Version>118.2.0.6</Version><!-- FROM -->
<Version>118.4.0</Version><!-- TO -->
</PackageReference>
</ItemGroup>
Also using but was unable to get these to update after updating the other packages. (Definitely why I couldn't build)
<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.4.0.2"/>
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.4.0.1"/>
Not sure if this is very helpful but thought I'd share. I am not going to poke the bear today since it's working now.
Thank you!
In this repo here, and I see you also have a reference in your sample app, when I don't include a direct reference to the
Xamarin.AndroidX.Collection.Ktx
library the Android app won't build and give the error below.A workaround is to add a direct reference to this package in the .NET MAUI project
Maybe this can be fixed if you add this direct reference to the library instead?