NullPointerException in Java Android App MediaPlayer

后端 未结 3 1762
北荒
北荒 2021-01-26 07:29

HELP please this is just a simple android app I am developing, it\'s meant to play a sound every time you click the button....it works when I click the button at a slow pace, bu

3条回答
  •  旧巷少年郎
    2021-01-26 07:44

    I had the same problem

    my solution was to re-encode the mp3 files with the LAME mp3 encoder

    You can use this program: http://www.freac.org/index.php/en/downloads-mainmenu-33

    apparently android is quite picky about mp3 codecs

提交回复
热议问题