I am trying to add an assets folder in Android Studio but it is not an option to me. When I go into the android view and try to create a new folder I am only presented with these options.
An alternative answer I found was to go to the packages view; however, I could not see my project directory from there. Does anyone know a way to add it as an option? Thanks!
3 Answers
Right-click on app folder go to New> Folder>Assets Folder.
Android Studio will open a dialog box. Keep all the settings default. Under the target source set, option main should be selected. and click finish.
4 Comments
mradey
I shared a picture in my question where this is not present as an option to me. I am able to create a new directory and name it assets, but I am unsure (and doubtful) that this is the same thing.
Mostafa Soliman
I hope that creating it in that way will work Did you try to run the project or something before?
mradey
What I meant to say is I would like to have the other options available as I am unsure why they are not listed for me.
Ankush Bist
@mradey right click on "app" folder you will get the folders option
In menu item it says requires min sdk >= 16, modify build.gradle it works. reference.
android { compileSdkVersion 26 defaultConfig { applicationId "android" minSdkVersion 16
src/main/assets/directory and android studio will load it