How to create an assets folder in Android Studio?

preview_player
Показать описание
Android Studio doesn’t have Assets folder which we usually use to keep our web files like HTML. Assets folder is saved under main folder: main/assets:

Here we will share step by step how to create Assets raw folder in Android Studio.

Step 1: Open your android studio. Navigate to Android option.
Step 2: You will find app folder and Gradle Script. Right click on app folder goto New - Folder - Assets Folder.
Step 3: Android Studio will open a dialog box. Keep all the settings default. Under target source set, option main should be selected. and click finish.
Step 4: Now open app folder. you will find your Assets folder by the name of “assets”.
Рекомендации по теме