[SOLVED] Adding an assets folder in Android Studio


This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under
CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

Issue

Android Studio has changed its project structure yet again… now it is

project
└── app-module
    ├── manifests
    ├── res
    └── java

I’ve been looking everywhere online, but I can’t find where to put the assets folder. When I try to create the folder via the directory viewer in Android Studio (right-click, New… directory) the “directory” option is not available. The only available options are:

Java Class
File
Module
Package
Image Asset

None of which will do what I want here.

Has anyone figured this out?

Solution

You can click on the Project window, press Alt-Insert, and select Folder->Assets Folder. Android Studio will add it automatically to the correct location.

You are most likely looking at your Project with the new(ish) “Android View”. Note that this is a view and not the actual folder structure on disk (which hasn’t changed since the introduction of Gradle as the new build tool). You can switch to the old “Project View” by clicking on the word “Android” at the top of the Project window and selecting “Project”.

Answered By – Code-Apprentice

people found this article helpful. What about you?