Reputation: 937
Since I already learned that Rebuild project in Android studio also does the cleaning project, now i want to know does "invalidate caches/restart" also does rebuilding project?
I use this command relatively often since android studio sometimes creates its own problem so i want to optimize using of this commands
Upvotes: 2
Views: 2521
Reputation: 5711
Invalidate caches
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
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.
And when we do Invalidate caches its first clear cache of all open projects and scanning and indexing is done then build Gradle .
So Yes when we Invalidate cache its build project too.
Upvotes: 5