使用 IntelliJ 管理大型 Android 项目

发布于 2024-11-10 16:53:49 字数 194 浏览 6 评论 0原文

我想知道,是否可以为大型 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笨死的猪 2024-11-17 16:53:49

将项目拆分为模块(希望您无论如何都会这样做,对于 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文