Where to place the 'assets' folder in Android Studio?

后端 未结 22 3270
醉酒成梦
醉酒成梦 2020-11-22 01:59

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.

相关标签:
22条回答
  • 2020-11-22 02:24

    File > New > folder > assets Folder

    0 讨论(0)
  • 2020-11-22 02:25

    right click on app folder->new->folder->Assets folder->set Target Source set->click on finish button

    0 讨论(0)
  • 2020-11-22 02:26

    Select the app folder and then:

    File > New > folder > assets Folder ,

    the default location is inside /main folder

    0 讨论(0)
  • 2020-11-22 02:27

    Looking inside the .iml file of your project you will see the following line:

     <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
    

    This means the "assets" folder is already declared for Gradle. You will need to create it under src/main/ (I'm using Android Studio 0.4.2).

    0 讨论(0)
  • 2020-11-22 02:27

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

    0 讨论(0)
  • 2020-11-22 02:29

    In Android Studio, click on the app folder, then the src folder, and then the main folder. Inside the main folder you can add the assets folder.

    0 讨论(0)
提交回复
热议问题