Flutter Mp3 audio file not detetcted

102 Views Asked by At

My android studio is not able to understand the file extension(.mp3). it gives (The asset does not exist or has empty data.) error even though files are present and path is correct . i rechecked the pubpsec.yaml folder. it shows no error and i got Question mark (?) in front of my audio files and not able to click those files . they are not responding or opening. Here are pictures of them: audio assets

and error shows like: error .

How can I resolve this issue ??

1

There are 1 best solutions below

6
Dhafin Rayhan On

From the error, it seems like the path has double assets/ path (assets/assets/audio/download1.mp3). Try to remove the unnecessary assets/ path from wherever you're accessing that audio file.