Directories rendered as packages in Intellij Idea 13?

android, intellij-idea, java

Solution

It looks like the Shopper folder has been set to being a source root, instead of the `src` folder. To fix, turn off Flatten Packages and Compact Empty Middle Packages, right-click on `src`, go to Mark Directory As, and then Sources Root. Then un-mark the project folder.

You can also do this from Project Settings.

Problem

After a rebuild of my android project i saw that the `src` folder and other folders(`assets`, `libs` etc) have turned into packages.(Packages in Intellij have a folder icon with a ball inside it) Due to this, I also got errors in all files inside `src` folder. (for example see `SearchActivity.java` , 1st line). I am new to Intellij so apologies if this sounds rudimentary.

Original source