Closed tolgatasci closed 3 years ago
I got the same error here.
String url = "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3"; ArgAudio audio = new ArgAudio("Bocelli", "Caruso", url, AudioType.URL); card4Player = root.findViewById(R.id.cardview_expandable_4_content_argmusicplayer); card4Player.play(audio);
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Class.getName()' on a null object reference
at android.content.ComponentName.
Got the same error and fixed it with enabling notification via the player:
argMusicPlayer.enableNotification(MainActivity.class);
However, notifications still don't work.
I put some more checks into the code and re-pushed the project. I hope it helps..
Can confirm it's working as intended without crashing in v2.1. Thank you for your hard work.