本文介绍了android studio中clean工程和rebuild工程的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Clean Project
和 Rebuild Project
(在 Android Studio 中)有什么区别?
What is the difference between Clean Project
and Rebuild Project
(in Android Studio)?
- 关于
res
ids
的R 文件
有问题,所以我将文件扩展名从gif
更改为> 到png
然后 [我的构建失败.] - 我发现解决方案是
重建项目
.这提示了我上面的问题.
- I had a problem with the
R file
aboutres
ids
, so I changed the file extension fromgif
topng
and then [my build failed.] - I found the solution was to
Rebuild Project
. This prompts my question above.
推荐答案
清理只是删除所有构建工件.重建会先清理,然后再构建您的项目.
A clean just removes all build artifacts. A rebuild does a clean followed by a build of your project.
EDIT #2 这是 100% 正确的.请参阅此以全面证明其正确性.
这篇关于android studio中clean工程和rebuild工程的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!