Where do I place the 'assets' folder in An

2018-12-31 05:57发布

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.

How can the Assets directory be configured in Android Studio?

19条回答
无色无味的生活
2楼-- · 2018-12-31 06:38

Select the app folder and then:

File > New > folder > assets Folder ,

enter image description here

the default location is inside /main folder

enter image description here

查看更多
无与为乐者.
3楼-- · 2018-12-31 06:40

enter image description hereHi it very simple, first of all, assets folder will not create automatic with the project. we need to create it.

The location of Assets folder is:- App->src->assets

please have a look of two simple images:enter image description here

Note: for craeting assets folder just click on project right click select NEW then folder then Assets, it will create assets folder.

查看更多
与君花间醉酒
4楼-- · 2018-12-31 06:42

Click over main → new directory → directory name "assets"

查看更多
几人难应
5楼-- · 2018-12-31 06:43

Two ways 1. select app/main folder, Right click and select New => Folder => Asset Folder It will create 'assets' directory in main

  1. Select main folder, Right click and select New => Directory Enter name as 'assets' = > ok

enter image description here

查看更多
不流泪的眼
6楼-- · 2018-12-31 06:44

File > New > folder > assets Folder

Assets Folder

查看更多
倾城一夜雪
7楼-- · 2018-12-31 06:44

If you tried all your bullets in this thread in vain try cleaning your project . In my case it only worked after Projet -> clean

查看更多
登录 后发表回答