raw cannot be resolved or is not a field

前端 未结 3 440
小鲜肉
小鲜肉 2021-01-13 04:11

I\'m building an MP3 player into my app and I\'m getting an error stating \"raw cannot be resolved or is not a field\" on the line: mMediaPlayer = MediaPlayer.create(this, R

3条回答
  •  别那么骄傲
    2021-01-13 05:03

    When I faced the issue, there was another issue. The name of the resource should contain only lowercase letters. If not, any reference to R causes an issue. Also extension is compulsory

提交回复
热议问题