B4J Question Exception using MediaPlayer

Computersmith64

Well-Known Member
Licensed User
Longtime User
I'm having an issue with MediaPlayer where if I try to play a sound, it works perfectly in debug mode - however if I do a release build & run it I get the following exception:

Here's the code I use:
B4X:
    Private MP As MediaPlayer
    MP.Initialize("", File.GetUri(File.DirAssets, "roll.wav"))
    MP.Stop
    MP.Play

I've done some searching on the web & found a few references to this issue, however I haven't been able to find a fix. Any suggestions?

- Colin.