当我尝试通过点击按钮播放声音时,我收到了错误E/MediaPlayer: Should have subtitle controller already set
。
public void clicaSom(View view) {
MediaPlayer somPickObjeto = MediaPlayer.create(this, R.raw.pegaitem);
somPickObjeto.start();
}
答案 0 :(得分:0)
仅在播放音频时,此日志消息是已知的API错误。你应该忽略它,或者如果你想摆脱它,这里有一个例子:Should have subtitle controller already set Mediaplayer error Android