android: [Media3] Attempting to create ExoPlayer instance crashes
Android framework version
net9.0-android
Affected platform version
.NET 9
Description
The code throw an exception when trying to create an instance of ExoPlayer
System.ArgumentException: Could not determine Java type corresponding to
AndroidX.Media3.ExoPlayer.IExoPlayerInvoker, Xamarin.AndroidX.Media3.ExoPlayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. (Parameter ‘targetType’)
Steps to Reproduce
var builder = new AndroidX.Media3.ExoPlayer.ExoPlayerBuilder(this);
var player = builder.Build();
Example project: media3.zip
Given other developers seem to already be using the media3 bindings, I wonder if I am doing anything wrong…?
Did you find any workaround?
No response
Relevant log output
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (18 by maintainers)
Commits related to this issue
- [Xamarin.Android.Build.Tasks] Allow invokers before abstracts Fixes: https://github.com/dotnet/android/issues/9535 TODO: description. — committed to dotnet/android by jonpryor 2 years ago
- [Xamarin.Android.Build.Tasks] Invokers after abstracts in typemaps Fixes: https://github.com/dotnet/android/issues/9535 Context: a017561b1e44c51a9af79fae0baaa50fe01c4123 Context: 35f41dcc7cf5eb65dc1... — committed to dotnet/android by jonpryor 2 years ago
- [Xamarin.Android.Build.Tasks] Invokers after abstracts in typemaps (#9545) Fixes: https://github.com/dotnet/android/issues/9535 Context: a017561b1e44c51a9af79fae0baaa50fe01c4123 Context: 35f41dcc... — committed to dotnet/android by jonpryor 2 years ago
- [Xamarin.Android.Build.Tasks] Invokers after abstracts in typemaps (#9545) Fixes: https://github.com/dotnet/android/issues/9535 Context: a017561b1e44c51a9af79fae0baaa50fe01c4123 Context: 35f41dcc... — committed to MaxMood96/xamarin-android by jonpryor 2 years ago
For me, media3.zip works on .NET 9 when you build in Release configuration.
Yes. Builds fine, but crashes during running.