What are the forbidden names for directories in the Android res directory?

I recently added res/raw/dictionaries/en-GB/wordlist.txtto my Android project. This created an error. In the end, I realized that the directory name was dictionariescausing problems, I changed it to dicts, and everything was fine.

Why is this name not allowed? Are others allowed? Is there a list of forbidden directory names?

+3
source share
2 answers

At http://developer.android.com/guide/topics/resources/providing-resources.html you can see that:

Classifier Name Rules

Alternative resource directories cannot be nested. For example, you cannot have res / drawable / drawable-en /.

res, . assets , .

- res/raw/dicts/en-GB/wordlist.txt, , , , wordlist.txt(R.raw.wordlist)

. , raw , .

+4

All Articles