In Android Studio, right-click on the folder and navigate to the Assets Folder
.
On the next screen just click Finish
.
It will create the assets
folder in the main
target source set.
法三:
1
2
3
4
5
6
7
8
9
|
Looking inside the .iml file of your project you will see the following line:
<option name=
"ASSETS_FOLDER_RELATIVE_PATH"
value=
"/src/main/assets"
></option>
Therefore the
"assets"
folder is already declared
for
Gradle but you need to create it under src/main/ (I'm
using
AS 0.4.2)
|