flutter_ringtone_player
flutter_ringtone_player copied to clipboard
W/MediaPlayer(14698): java.io.FileNotFoundException: No content provider: /data/user/0/com.example.apk/cache/assets/sounds/ringtone.mp3
How i can solve this?
my code:
FlutterRingtonePlayer.play( fromAsset: "assets/sounds/ringtone.mp3", volume: 1.0, looping: false, asAlarm: true);
Hi, Im also facing the same issue .Sound plays but the error found in console .Do You know the reason ?
Try add path source on pubspec.yaml :# To add assets to your application, add an assets section, like this: assets: - assets/ - assets/icons/ - assets/images/ - assets/images/backgrounds/ - assets/sounds/
And clean your flutter project