inway / flutter_ringtone_player

Simple Flutter plugin to play ringtone, alarm & notification sounds
MIT License
89 stars 57 forks source link

W/MediaPlayer(14698): java.io.FileNotFoundException: No content provider: /data/user/0/com.example.apk/cache/assets/sounds/ringtone.mp3 #34

Closed 0neCigarettes closed 1 year ago

0neCigarettes commented 2 years ago

How i can solve this?

my code:

FlutterRingtonePlayer.play( fromAsset: "assets/sounds/ringtone.mp3", volume: 1.0, looping: false, asAlarm: true);

suhaib-raadan commented 1 year ago

Hi, Im also facing the same issue .Sound plays but the error found in console .Do You know the reason ?

0neCigarettes commented 1 year ago

Try add path source on pubspec.yaml :# To add assets to your application, add an assets section, like this: assets:

And clean your flutter project