分享

Android Studio 添加Assets目录 / 蓝讯

 白玉老虎学堂 2016-05-31

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 Android Studio 添加Assets目录
 folder and navigate to the Assets Folder.

Android Studio 添加Assets目录

On the next screen just click Finish.

Android Studio 添加Assets目录

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

Android Studio 添加Assets目录

 

 

 

法三:

 

Looking inside the .iml file of your project you will see the following line: <option name='ASSETS_FOLDER_RELATIVE_PATH' value='/src/main/assets' /> 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)

  

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多