How to create a directory folder in Android Studio?
Right click on the package then "Mark Directory as" -> Unmark as Sources Root. All child packages will be seen as folders.
You need to go File -> Project structure. Select lib folder and unmark as source