What is the difference between Clean Project
and Rebuild Project
(in Android Studio)?
R file
about res
ids
, so I changed the file extension from gif
to png
and then [my build failed.]Rebuild Project
. This prompts my question above.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.
In android studio(3.0. 1), File -> Open Recent -> Manage Projects -> click on 'X' for the project you wish to close.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With