博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Android Studio 添加Assets目录
阅读量:5075 次
发布时间:2019-06-12

本文共 653 字,大约阅读时间需要 2 分钟。

Android Studio 添加Assets目录:

 

法一:

  

Since Android Studio uses the new Gradle-based build system, you should be putting assets/ inside of the source sets (e.g., src/main/assets/), if I understand correctly.

  

法二:

In Android Studio, right-click on the enter image description here folder and navigate to the Assets Folder.

enter image description here

On the next screen just click Finish.

enter image description here

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

enter image description here

 

 

 

法三:

 

Looking inside the .iml file of your project you will see the following line: 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)

  

 

转载于:https://www.cnblogs.com/spring87/p/4386043.html

你可能感兴趣的文章