Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the difference between Invalidate caches and restart and clean project in Android studio

Seems like it is doing similar things, so why is it different?
There is additionaly gradle jars downloading on invalidate and restart and nothing in Clean project.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Invalidate caches and restart in Android studio removes all the gradle caches which contains all the libraries used, past build results and apk analyser data. It is used when the editor behaves weirdly and as a last resort to an error in the IDE.

Meanwhile project clean deletes just the gradle build and not the network downloads and other caches. It is used to rebuild projects and to get rid of project metadata and system generated code for the project in gradle setup.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading