Android: How to add R.raw to project?

后端 未结 13 1384
半阙折子戏
半阙折子戏 2021-02-04 23:39

How I could add R.raw class to my android project? Now I haven\'t /res/raw folder at all (and class as well). And I can\'t find any tools in eclipse to do that. So how to add R.

13条回答
  •  被撕碎了的回忆
    2021-02-05 00:29

    Using IntelliJ Idea:

    1) Invalidate Caches, and 2) right click on resources, New Resources directory, type = raw 3) build

    note in step 2: I was concerned that simply adding a raw directory wouldn't be enough...

提交回复
热议问题