1. Download our Official Android App: Forums for Android!

Apps Difference betw Clean Project and Rebuild Project

Discussion in 'Android Development' started by ac4android, Jun 1, 2016.

  1. ac4android

    ac4android Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    198
    Joined:
    Nov 3, 2015

    Nov 3, 2015
    198
    29
    53
    There doesn't seem to be any difference in A/S 2.1.1

    Anyway, I rebuild the hold thing in the hold that it doesn't drag along any old APK artifacts...
     

    Advertisement

  2. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,297
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,297
    23,692
    2,138
    Male
    space alien ;)
    Indy
    I don't (really) use Android Studio that much (I've got a really early version installed), but in Eclipse, a "clean project" will rip-out / delete any of the generated binaries/libraries, etc. associated with the app.

    I use that feature/function before I make a copy of the workspace folder/directory since it's so much smaller (i.e., is a nice "source-only" (mostly) content) that I can archive off for my history/backup versions.

    Rebuilding (I would think) simply does that: re-builds the project (but maybe with an implicit clean beforehand instead of just incrementally compiling those things that have changed?).

    Cheers!
     
  3. HeavensSentSword

    HeavensSentSword Well-Known Member
    Rank:
    None
    Points:
    93
    Posts:
    134
    Joined:
    Jan 19, 2016

    Jan 19, 2016
    134
    36
    93
    Male
    scary alien is right.
    In studio, A clean removes all build artifacts. While a rebuild does a clean followed by a build of your project.
     
    ac4android and scary alien like this.

Share This Page

Loading...