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

后端 未结 22 3271
醉酒成梦
醉酒成梦 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:40

    Let Android Studio do it for you.

    1. In Android Studio (1.0 & above), right-click on the enter image description here folder and navigate to the Assets Folder.

    enter image description here

    1. On the next screen just click Finish.

    enter image description here

    And voila! It will create the assets folder in the main target source set.

    enter image description here

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

    It's simple, follow these steps

    File > New > Folder > Assets Folder

    Note : App must be selected before creating folder.

    0 讨论(0)
  • 2020-11-22 02:41
    Src/main/Assets
    

    It might not show on your side bar if the app is selected. Click the drop-down at the top that says android and select packages. you will see it then.

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

    Two ways:

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

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

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