Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application won't work with the package AudioPlayers on Android VM #4

Open
ashishbairwa opened this issue Sep 2, 2019 · 2 comments

Comments

@ashishbairwa
Copy link

ashishbairwa commented Sep 2, 2019

For some reason, the application throws an error,
audioplayersPlugin(28127): java.lang.RuntimeException: Unable to access resource
However, even after adding the permission in the manifest won't work and reproduces the error.
• You can add a note in the course to either use a different package available. Here is a really nice list
https://medium.com/flutter-community/how-to-add-music-audio-to-your-flutter-app-dcb6162c32d7
• I used Assetsaudioplayer and it worked absolutely fine.

                _assetsAudioPlayer = AssetsAudioPlayer();
                _assetsAudioPlayer.open(AssetsAudio(
                  asset: "note1.wav",
                  folder: "assets/",
                ));
                _assetsAudioPlayer.play();
              },```
@harshrocks
Copy link

Bro if you found the solution please let me know

@AkshaySiddannavar
Copy link

Just a suggestion :

Use an appropriate physical device as long as this problem isn't resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants