Reputation: 1235
As you can see here, the option to create new directories doesn't exist, i can only add new packages.
What I want to do though is create a folder structure like
>Lib
>>Pages
>>>Startpage
>>>Loginpage
>>Helpers
>>>Networkhelper
>>>>Requesthelper
>>>Storagehelper
etc...
which i can't do with packages as i cannot put packages into empty packages and stuff
this worked before, however now when i created a new project, the same way i always did, it didn't work. any ideas on what i can do/what went wrong?
Upvotes: 6
Views: 3563
Reputation: 1770
Initial Situation:
On Android Studio you can only add a "Package", not a Directory.
SOLUTION
Step # 1: Open the Project Structure window.
Either press Command+; or go through File > Project Structure:
Then you should see something like this:
Step 2: Remove the lib folder from the the project's sources root:
Final Situation:
Upvotes: 4
Reputation: 1
just open VS CODE and create the desired folder it should work that way
Upvotes: 0
Reputation: 311
For some reason, lib directory is marked as source root. Its actually doesn't make difference wether shown as package or folder. Its the same thing. But if you want to change it, unmark it.
in your project tree:
project_name -> lib:
Hope it help.
Upvotes: 31