打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Android Studio 添加Assets目录 / 蓝讯

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 


 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.


 

 

 

法三:

 

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)

  

 

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Android Studio下通过Gradle配置实现资源文件的模块化
Android Studio导入第三方类库的方法
Android Studio 常见问题汇总 – 码农网
Android Studio目录结构浅析
史上最详细的Android Studio系列教程二
Android Studio 入门级教程(二):新建一个属于自己的工程并安装Genymotion模拟器
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服