Home » Android » java – android studio folders inside packages

java – android studio folders inside packages

Posted by: admin May 14, 2020 Leave a comment


how can I have a directory structure like



android studio doesn’t seem to want to let me have source folders inside a package folder for some reason. Also if I want to have jni libraries and native c++ code how can I have this inside the same package. The android studio is a great program but the directory structure is really confusing please help. Right now my project doesn’t even have a package folder and none of the source code has “package” at the top but it seems to find everything alright.

How to&Answers:

Right click on your package and select new > Package then name it activity or fragment or …


Right click on your package name(src/main/java/com.L33Tcode.example). After that select New->Package and enter folder name(Fragments) watever you want. Here you can see that your package is created. package in it’s self is your folder. So, you can see it from right click on your created folder(Fragments)-> show in history and show your folder init.


Yes, the “Package” is the folder