I am confused about the assets
folder. It doesn\'t come auto-created in Android Studio, and almost all the forums in which this is discussed talk about Eclipse.
First of all the "Assets" folder will not be created automatically with the project. We have to create it.
The location of Assets folder is: App > src > Assets
Please have a look of the simple image below.
Note: For creating assets folder just click on Project => Right click => Select New => Folder => Assets. It will create Assets folder.
Simply, double shift then type Assets Folder
choose it to be created in the correct place
follow these steps
1)file->New->Folder
there are multiple options like
aidl folder
assets folder
jni folder
2) choose options assets folder
3) then there is option to change path of assets folder if you
want to change then check otherwise left that checkbox of cahnge folder location
4) click on finish
Step 1 : Go to Files. Step 2 : Go to Folders. Step 3 : Create Assets Folder.
In Assets folder just put fonts and use it if needed.
In Android Studio right-click Folder in app->src->main then create new DIRECTORY name that assets
.
need configure parameter for gradle
i hope is will work
// file: build.gradle
sourceSets {
main {
assets.srcDirs = ['src/main/res/icon/', 'src/main/assets/']
}
}