Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding an assets folder in Android Studio

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?

like image 659
JMRboosties Avatar asked Nov 03 '14 02:11

JMRboosties


People also ask

Where do I put assets folder?

Put the assets folder in the main/src/assets path.

What is the use of assets folder in Android?

Assets provide a way to include arbitrary files like text, xml, fonts, music, and video in your application. If you try to include these files as "resources", Android will process them into its resource system and you will not be able to get the raw data.

How do I add assets folder in Visual Studio?

You can open assets folder in Visual Studio Code by simply right-clicking it in Solution Explorer and select Open Assets in VS Code. On default, extension looks for [anyname]. assets folder in solution folder. If it finds, it will run VS Code in that directory.

How do I create a folder in Android Studio?

In the drop down menu click on the new option. After this a drop down menu opens here you will see directory option just click on that. After this enter the name of your directory / folder and press enter this will create a new folder / directory inside your root folder.


1 Answers

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

like image 197
Someone Somewhere Avatar answered Oct 07 '22 21:10

Someone Somewhere