Java Android获取错误E/MediaPlayerActive:尝试播放mp3文件时出错(1,-19)

Java Android获取错误E/MediaPlayerActive:尝试播放mp3文件时出错(1,-19),java,android,android-studio,android-mediaplayer,Java,Android,Android Studio,Android Mediaplayer,我有多个项目,点击,然后我想要一个声音。我犯了一个错误 (E/MediaPlayerNative:error(1,-19)和 E/MediaPlayer:错误(1,-19))。 我的代码 //设置单击侦听器播放音频 mylist.setOnItemClickListener(新的AdapterView.OnItemClickListener(){ @凌驾 公共虚线单击(AdapterView AdapterView,视图视图,内部位置,长l){ //在用户单击的给定位置获取allwords对象

我有多个项目,点击,然后我想要一个声音。我犯了一个错误 (E/MediaPlayerNative:error(1,-19)和 E/MediaPlayer:错误(1,-19))。 我的代码

//设置单击侦听器播放音频
mylist.setOnItemClickListener(新的AdapterView.OnItemClickListener(){
@凌驾
公共虚线单击(AdapterView AdapterView,视图视图,内部位置,长l){
//在用户单击的给定位置获取allwords对象
Word=allwords.get(位置);
//使用当前word创建和设置媒体播放器
mymediaplyer=MediaPlayer.create(PhrasesActivity.this,word.getaudio());
//启动音频
mymediaplyer.start();
}
});
// set click listener to play the audio
        mylist.setOnItemClickListener(new AdapterView.OnItemClickListener() {
    @Override
    public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {
        // get the allwords object at the given the position the user clicked on
        Word word = allwords.get(position);
        // create and setup media player with current word
        mymediaplyer = MediaPlayer.create(PhrasesActivity.this, word.getaudio());
        //start the audio
        mymediaplyer.start();

    }


});