使用 IntelliJ 管理大型 Android 项目
我想知道,是否可以为大型 Android 项目创建敏捷的项目结构?
现在项目被组织为单个 android_module。编译时间让我感到沮丧。项目包含约 350 个 xml 布局、约 800 个小图像,因此 R.java 生成和打包需要很长时间,即使我只为一项活动更改了一个 xml 布局。
我的目标 - 允许快速编译和测试运行项目的一个部分
I wonder, is it possible to create agile project structure for large android project?
Now project is organized as single android_module. And compile time depresses me. Project contains ~350 xml layouts, ~800 small images, so R.java generation and packaging takes very long, even if I changed only one xml layout for one activity.
My goal - allow fast complie and testrun for one single part of project
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将项目拆分为模块(希望您无论如何都会这样做,对于 IntelliJ 也以这种方式构建它)。
然后在需要的地方添加模块依赖项,您可以制作模块 - 这只会重新编译您感兴趣的部分。
Split the project up into Modules (hopefully you're doing this anyway, just structure it this way for IntelliJ too).
Then add module dependencies where required and you can Make Module - which will only recompile the parts you are interested in.