i use flutter and i used assets_audio_player library to run sounds in my app, it was working fine until last day, when i run the code it gives me PlatformException(OPEN,nul,null,null).
I tried to change the version and also tried to restart the app but nothing worked.
I used AudioWidget.assets() to run the sound, it was working fine but when version 3.0.6 was released it didn't work and gives a rethrow error.
CodePudding user response:
I think it can be an Incompatibility or even some error that could happen with build files being not updated or synchronised.
Just to have a clear conscience, please, on your project terminal, run the very old classic:
flutter clean
Then, run
flutter pub get
Stop your running project and rebuild your application
In fact, if it doesn't solve your problem, i would suggest you to downgrade the assets_audio_player to the previous version to when it was working.
Update me if none of this solve your problem.