Android Raw folders - creation and reference

前端 未结 7 821
北荒
北荒 2020-11-29 08:16

I\'m trying to create a raw folder for my android app which will hold different media files for use later. But I can\'t seem to be able to reference the created raw folder i

7条回答
  •  不知归路
    2020-11-29 08:39

    When I created raw folder inside res for the first time, I was not able to access it using R.raw but still I use R.raw.music in my code [showing me error that can not reference to this folder] and when deploy the app that error gone away, my app run without any problem. After that, I was able to access raw folder using R.raw.

提交回复
热议问题