I use latest Android Studio 0.8.4 (for OS X), in \"res\" directory I create new \"database\" directory and put there all files what I need and when I try to compile I receiv
Old question but googling the error got me here.
This was fixed for me by deleting the (empty) "navigation" folder from res, it was left over when checking out a different branch from a repository, appears it can't be empty or it will cause this error.
You can only have predefined set of folder inside res folder. so you are creating database folder inside res folder which is invalid. Either put database files inside assets folder or raw folder.
Perform Build Clean
and Rebuild Project
did not work for me.
I had to manually delete .idea/caches
, then rebuild project.
In my case, I had accidentally entered a random character right before the beginning of my strings.xml file.
I removed the "f" character before the xml declaration and all was well again.