77

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?

Bitswazsky
  • 4,242
  • 3
  • 29
  • 58
JMRboosties
  • 15,500
  • 20
  • 76
  • 116
  • 1
    This is the complete answer with image guidance [enter link description here](http://stackoverflow.com/questions/18302603/where-to-place-assets-folder-in-android-studio#27673773) – Ata Iravani Nov 17 '15 at 15:54

5 Answers5

183

An image of how to in Android Studio 1.5.1.

Within the "Android" project (see the drop-down in the topleft of my image), Right-click on the app...

enter image description here

Someone Somewhere
  • 23,475
  • 11
  • 118
  • 166
104

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".

Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268
16

According to new Gradle based build system. We have to put assets under main folder.

Or simply right click on your project and create it like

File > New > folder > assets Folder

Zar E Ahmer
  • 33,936
  • 20
  • 234
  • 300
6

To specify any additional asset folder I've used this with my Gradle. This adds moreAssets, a folder in the project root, to the assets.

android {
    sourceSets {
        main.assets.srcDirs += '../moreAssets'
    }
}
E. Sundin
  • 4,103
  • 21
  • 30
3

right click on app-->select

New-->Select Folder-->then click on Assets Folder

ADM
  • 20,406
  • 11
  • 52
  • 83
Aman Saini
  • 31
  • 2