I’m using MediaPlayer.Load(File.DirAssets, "sounds/test.mp3") to load an MP3 file that I placed inside a subfolder (sounds) under the Files tab. In Debug mode, everything works fine — the media file is found and plays. However, in Release mode, I get a FileNotFoundException, and the audio doesn't play.
attached test projrct
I’m using MediaPlayer.Load(File.DirAssets, "sounds/test.mp3") to load an MP3 file that I placed inside a subfolder (sounds) under the Files tab. In Debug mode, everything works fine — the media file is found and plays. However, in Release mode, I get a FileNotFoundException, and the audio doesn't play.
attached test projrct
I need to integrate an SDK that writes files to the assets directory (assets\gdt_plugin\gdtadv2.jar). However, after integration with B4A, the SDK fails when trying to access files in assets subdirectories. Does B4A implement special handling for the assets directory? Since I cannot modify the...
I need to integrate an SDK that writes files to the assets directory (assets\gdt_plugin\gdtadv2.jar). However, after integration with B4A, the SDK fails when trying to access files in assets subdirectories. Does B4A implement special handling for the assets directory? Since I cannot modify the...
please check updated project ,it load image from subfolder normally in relase mode but give error when try to play media player from same subfolder
i found this maybe the reason
Common Causes
Asset Compression: In release mode, certain file types in subdirectories may get compressed by default, which can break file access if your code expects uncompressed files.