Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between clean project and rebuild project in android studio

What is the difference between Clean Project and Rebuild Project (in Android Studio)?

  • I had a problem with the R file about res ids, so I changed the file extension from gif to png and then [my build failed.]
  • I found the solution was to Rebuild Project. This prompts my question above.
like image 779
Fukkong Avatar asked Jun 06 '14 14:06

Fukkong


People also ask

What happens if project is clean Android Studio?

Obviously, try to clean your project from android studio : “Build -> Clean Project”. This will clear your build folders. Clear the cache of Android Studio using “File -> Invalidate Caches / Restart” choose “Invalidate and restart option” and close Android Studio.

How do I delete an existing project in Android Studio?

In android studio(3.0. 1), File -> Open Recent -> Manage Projects -> click on 'X' for the project you wish to close.


1 Answers

A clean just removes all build artifacts. A rebuild does a clean followed by a build of your project.

EDIT #2 This is 100% true. Refer to this for a thorough demonstration of its correctness.

like image 68
Larry Schiefer Avatar answered Sep 21 '22 01:09

Larry Schiefer