Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的风味资产中有一个文件夹,仅用于风味的调试构建
有没有办法从所有发布版本中排除这个文件夹?
将资产放入源集中debug。
debug
现在,大概这些资产在src/main/assets/您的模块中。对于那些您只需要在debug中创建src/debug/assets/和移动资产的人。它们将包含在构建中(与您的main资产一起),debug但不会包含在release构建中。
src/main/assets/
src/debug/assets/
main
release