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
Implementing this in .Net Maui 8 throws error on build when trying to implement Casting. #835
Comments
See also: xamarin/AndroidX#764 Applying the following patch to https://github.com/Jricklefs/GPSDontWorkforCasting will allow it to build: diff --git a/GPSDontWorkforCasting/GPSDontWorkforCasting.csproj b/GPSDontWorkforCasting/GPSDontWorkforCasting.csproj
index 6b39405..279d57b 100644
--- a/GPSDontWorkforCasting/GPSDontWorkforCasting.csproj
+++ b/GPSDontWorkforCasting/GPSDontWorkforCasting.csproj
@@ -66,6 +66,8 @@
<PackageReference Include="Xamarin.GooglePlayServices.Cast.Framework">
<Version>121.3.0.5</Version>
</PackageReference>
+ <PackageReference Include="Xamarin.AndroidX.Collection.Jvm" Version="1.4.0" />
+ <PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.4.0" />
</ItemGroup>
</Project> Consider your error message:
Within those paths are the package names causing the conflict, after
Search for those packages on <nuget.org>, and add a |
Added PR to the repro sample. It was a bit more than JonP suggested. <ItemGroup Condition="( '$(TargetFramework)' == 'net8.0-android' )">
<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.4.0" />
<PackageReference Include="Xamarin.AndroidX.Collection.Jvm" Version="1.4.0" />
<PackageReference Include="Xamarin.AndroidX.Preference" Version="1.2.1.3" />
</ItemGroup> |
closing this issue |
Xamarin.Android Version (eg: 6.0):
.Net Maui 8
Operating System & Version (eg: Mac OSX 10.11):
Android
Google Play Services Version
Xamarin.GooglePlayServices.Cast.Framework 121.3.0
Describe your Issue
Attempting to implement casting in android does not work. Throws build error.
It will build and deploy when deploying to windows machine but deploying to android cause the error.
The line of code in the example, is showing deprecated, but used to keep the code base minimal. If I use the new method, it causes the same error to be thrown. The only way I can get around the build error is to Roll back the version to 121.2.0.
Relevant information
Add relevant project settings from
*.csproj
file:Packages used:
Build settings (tools)
or even better - links to the existing code:
https://github.com/Jricklefs/GPSDontWorkforCasting
NOTE: Please DO NOT submit screenshot images. Images are not searchable!
Minimal Repro Code Sample
If you want to speed up investigation and bug fixing: please provide minimal repro sample for tests.
Steps to Reproduce (with link to sample solution if possible):
Include any relevant Exception Stack traces, build logs, adb logs:
Exception :
The text was updated successfully, but these errors were encountered: