博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Android Studio 没有assets目录的问题
阅读量:7249 次
发布时间:2019-06-29

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

Screen Shot 2014-02-22 at 19.41.02

Where to place the assets folder in Android Studio

If you are having problems with asset files not being included in your compiled apk file, it may be because your assets folder is placed in the wrong directory.

The assets folder should usually be inside the following folder:

<project>/src/main/

That is the default, but make sure to check the asset folder configuration setting in your projects .iml file, to be sure which folder it really is:

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

The path to the assets folder should be:

<project>/src/main/assets

place all your assets inside, and the files should now get included in the build!

If not, try cleaning t he project, by going to Build -> Clean project

or running  ./gradlew clean

转:http://envyandroid.com/archives/1074/assets-android-studio

转载地址:http://unebm.baihongyu.com/

你可能感兴趣的文章
centos7配置svn服务器
查看>>
亮剑:PHP,我的未来不是梦(13)
查看>>
MYSQL主从数据同步
查看>>
javascript数组操作
查看>>
linux中父进程退出时如何通知子进程
查看>>
linux 缩减文件系统大小 LVM
查看>>
对比文件md5值实现去重文件
查看>>
C#设计模式之二十三解释器模式(Interpreter Pattern)【行为型】
查看>>
js处理中文乱码记录/nodejs+express error 413
查看>>
基于Keepalived实现LVS双主高可用集群
查看>>
SqlServer 使用脚本创建分发服务及事务复制的可更新订阅
查看>>
什么是Floating (浮动)规则?
查看>>
分布式文件系统-FastDFS
查看>>
HTML5 rotate 做仪表盘
查看>>
为什么说荆州松滋刘氏采穴堂是刘开七、刘广传的后裔
查看>>
React中使用Ant Table组件
查看>>
第四篇 快速、轻量、可扩展、易于使用的EmEditor
查看>>
MySQL删除小写记录
查看>>
用shell脚本收集查询IP信息的网站
查看>>
shiro整合oauth
查看>>