Skip to content
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

Receiving 'Missing system type and architecture.' exception on Android in VS 2022 Emulator #471

Open
acasciani opened this issue Jan 6, 2024 · 1 comment

Comments

@acasciani
Copy link

Hello! In my code I have the following call:
await FFmpegDownloader.GetLatestVersion(FFmpegVersion.Android);

This throws an System.InvalidOperationException: 'Missing system type and architecture.' in the Pixel 5, Android 11.0 API 30 Visual Studio 2022 emulator and using .NET 8. I pulled the Xabe.FFmpeg.Downloader code locally and loaded side by side by code. The exception is happening here: https://github.com/tomaszzmuda/Xabe.FFmpeg/blob/7af0345089bec7a6c5ecdcb339dd6e01e36b96cd/src/Xabe.FFmpeg.Downloader/OperatinSystemProvider/OperatingSystemProvider.cs#L54C15-L54C15

Each of the following will return false within this emulator.

RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
RuntimeInformation.IsOSPlatform(OSPlatform.Linux)

Per this .net core documentation (dotnet/runtime#51052 (comment)) it does not look like this is the preferred way to check for Android.

Is this a bug in the OperatingSystemProvider.cs implementation for Android, or is there a different way we should go about using await FFmpegDownloader.GetLatestVersion(FFmpegVersion.Android); with Android?

Thank you!

@juepiezhongren
Copy link

i have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants