Cannot resolve Method isPlaying()?


I seem to get the error

Cannot resolve method isPlaying when I use mPlayer.isPlaying()

I also get the same error for mPlayer.pause() where as play and stop work fine.

Any idea what could cause this? I am using Android studio. I tried organizing imports, clean and rebuild project.