gpt4 book ai didi

android - 使缓存无效与重建项目

转载 作者:行者123 更新时间:2023-11-29 23:20:00 24 4
gpt4 key购买 nike

既然我已经知道Android studio中的Rebuild项目也做清理项目,现在我想知道“invalidate caches/restart”是否也做重建项目?

我经常使用这个命令,因为 android studio 有时会产生自己的问题,所以我想优化这个命令的使用

最佳答案

使缓存无效

Android Studio makes a lot of files as caches and does not delete them. This can cause trouble when there is a need to make new files, so clearing caches will clear the old cache and make Android Studio faster.

重建项目

Rebuild Project. All the source files in the project are recompiled. This may be necessary when the class path entries have changed, for example, SDKs or libraries being used added, removed or altered.

当我们执行无效缓存时,它会首先清除所有打开项目的缓存并完成扫描和索引,然后构建 Gradle。

So Yes when we Invalidate cache its build project too.

关于android - 使缓存无效与重建项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54513147/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com