在 Android Studio 中运行重建项目后会发生什么? [英] What happens after I run rebuild project in Android Studio?

查看:27
本文介绍了在 Android Studio 中运行重建项目后会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档http://www.jetbrains.com/idea/help/rebuilding-project.html?search=reb 只告诉我如何重建项目.

The document http://www.jetbrains.com/idea/help/rebuilding-project.html?search=reb only tells me how to rebuild a project.

我不知道重建项目是什么意思(Menu --> Build --> Rebuild Project),它会清除所有编辑缓存吗?运行rebuild工程后发现工程变小了?

I don't know what does it mean to rebuild a project (Menu --> Build --> Rebuild Project), will it clean all edit cache? I find the size of the project reduced after I run rebuild project?

在 Android Studio 中清除项目是什么意思?

What does it mean to clear a project in Android Studio?

推荐答案

在 Android Studio 中,构建菜单中的几乎每个声音都映射到一个(可能不止一个)gradle 操作,其中 Gradle 是 android 的官方构建系统.特别是,当您清理项目时,您将从应用模块内的 build 文件夹中删除一些文件,而当您选择重建时,这相当于执行 gradle clean 和 build.有关该主题的更多信息,我建议您在 Udacity 上学习这门课程,您可以免费查看.它教你 gradle 以及它如何与 android studio 集成.

In Android Studio, almost every voice in the build menu is mapped to a (possibly more than one) gradle action, where Gradle is the official build system for android. In particular, when you clean the project you are deleting some files from the build folder inside your app module, and when you select rebuild that's the equivalent of doing a gradle clean and build. For more information on the topic I suggest this course on Udacity, which you can view for free. It teaches you gradle and how it integrates with android studio.

https://www.udacity.com/course/gradle-for-android-and-java--ud867

这篇关于在 Android Studio 中运行重建项目后会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆