-
-
Notifications
You must be signed in to change notification settings - Fork 60
App crashes on low android level **Java.IO.IOException:** 'Prepare failed.: status=0x1' #47
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
Comments
Could you maybe add a reproduction project for this so I can have a look? The error doesn't have a lot of info, but this line: Also, just to set expectations: I understand this might be urgent to you, I appreciate that, however I may have different priorities than you. I cannot make any promises about if and when this will be fixed. This project is a community effort, which we are not being paid for. |
I'm afraid that the emulator does not give an error, most likely if I upload an example, you will not get an error. Can I read the sound.wav file any other way? |
Sure, you can use You might want to try and move this line: Also double-check that you added the file in the Resources/Raw folder and the BuildAction is set the MauiAsset. As mentioned: I have a feeling that it either can't find the file or it can't be opened due to a permissions issue. |
adrianstevens/Xamarin-Plugins#75 (comment) I seem to have the same problem as people here. I was planning to finish the application, I was very upset when I threw it on my old device and observed this problem :( |
Looks like there was also a workaround provided: adrianstevens/Xamarin-Plugins#75 (comment) It seems like those device cannot handle a certain type of audio files. I'm afraid there is not much we can do about that with our code. This has to do with what a device supports for the audio. I hope you can figure out how to make it work, please let us know if you do! |
The phone does not support the wav format. |
Hello, I managed to play the sound by watching the video on youtube (android 10.11), but,
On an old device (android 6.0.1) etc. It directly causes my application to crash.
Its output is;
What is the solution? I want to use this library.
The text was updated successfully, but these errors were encountered: