如有错误欢迎指正 Caused by: java.lang.IllegalStateException at android.media.MediaPlayer._prepare(Native Method) at android.media.MediaPlayer.prepare(MediaPlayer.java:1274)
注意mediaplayer的状态,在prepare前加了一句reset,报错的情况减少了很多