-
Notifications
You must be signed in to change notification settings - Fork 147
Class not found exceptions when using Cast Framework #431
Comments
Well, at least I figured it out.
|
Thanks for your feedback. Appreciated. Yes. Dependencies can be hell. The number of artifacts grows and the number of nuget maintainers decreases. 😄 The reason dependencies might not be right and manual addition is necessary is simple - at the time of creating bindings the latest versions are used and if something changes in dependency chain it can break things. The common problem is that Dagger must be manually added (latest version) and recently DataTransport too. I plan to update tons of bindings in XamarinComponents next week, but that is tons of work. Can I add this Cast sample to our samples, please? We need it as much as possible in order to have large testing surface. |
Hi @moljac, Thanks for your quick reply! Much appreciated!
Thanks for your explanation! I didn't add DataTransport manually though, I use the transitive dependency from Dagger (I guess) and it works. So I assume I am safe now?
That would be nice!
Yes, of course! It is not very clean code though, just as quick and dirty to test my use case. Thanks again! |
Xamarin.Android Version (eg: 6.0):
Operating System & Version (eg: Mac OSX 10.11):
Windows 10
Google Play Services Version
GPS-FB with AndroidX dependencies (versions
119.0.0
)[] GPS-FB with Android.Support (legacy) dependencies (versions
71.yyyy.zz
)Describe your Issue
I am trying to implement Cast framework in my media player app, and am running into some issues.
I use Plugin.MediaManager as a media player, and that works quite well.
While running in debug mode, I first got the error
Then I added the Xamarin.Google.Dagger package.
After this, I get the following error:
If I set AndroidEnableDesugar to false, I get this build error:
I have to set the minimum version to Oreo to be able to build again.
That's not acceptable for my client, and even then, I get the same error. So I reverted that.
As another try, I added the following package to check whether the exception would be solved.
That gives me a runtime crash:
I was maybe missing the Xamarin.GooglePlayServices.Base. Installed it (it got updated to 117.6.0).
Same error.
Since the error DataTransport CCT installed the following package. It got updated.
This doesn't solve my problem either.
Relevant information
Add relevant project settings from
*.csproj
file:Packages used:
Build settings (tools)
Minimal Repro Code Sample
I have a sample project at https://github.com/janwiebe-jump/cast-repro
Steps to Reproduce (with link to sample solution if possible):
Run the code, and see the error coming.
Include any relevant Exception Stack traces, build logs, adb logs:
I see the following D8 related warnings in the build log:
The text was updated successfully, but these errors were encountered: