banner



How To Clean Project In Android Studio

Put your Android Studio on a nutrition

How to make a deep clean of your Android Studio & Gradle junk files to set up upwardly the mess.

Clear your project directory

  1. Obviously, endeavour to clean your project from android studio : "Build -> Make clean Project". This volition clear your build folders.
  2. Clear the enshroud of Android Studio using "File -> Invalidate Caches / Restart" cull "Invalidate and restart pick" and close Android Studio.
  3. Remove your .gradle directory from the root of your projection. It contains some Gradle cache files.
  4. Delete also the .thought directory (brand a backup before). It contains some projection configuration files.
  5. Restart Android Studio.

Gradle cleaning

  • caches: Gradle enshroud files.
  • daemon: essentially logs files of Gradle daemons.
  • wrapper: different distributions of Gradle downloaded on you machine.

Android Studio cleanup

  1. Go to your Android habitation, usually ~/.android and clear build-cache and cache directories. There are few MB to free here (~100MB for me)
  2. In the ~/Library/{Preferences, Caches, Logs, Application Support} directories, you will find the Android Studio preferences files, settings and plugins. You tin clear the directories of previous version of Android Studio (>1GB per version of Equally). Starting with version three.3, Android Studio will propose y'all to remove them later on an update.

Android Studio 3.iii directories removal dialog
  • Android Studio 3.half dozen (still in preview) added an option to clear temporary files, which tin gratis upwards some precious GB.

Android Studio 3.6 Canary vi SDK manager
  • Onetime SDKs you don't use anymore. I guess you lot'll not miss the Android 3.0 SDK files.
  • Remove the emulators you don't use as they're quite heavy (some GB).
  • I recommend to keep "Sources for Android xx" items as it will let you to check the source code of the SDK from a previous version of Android & help y'all debugging.
  • On the SDK Tools tab, click on "Bear witness Packages Details" and uncheck the erstwhile build-tools or NDK versions.
  • Delete unused emulators using the AVD.

Extra cleaning

  • Your download directory: you may have downloaded a lot of GIFs, video, Android Studio binaries that you lot can remove.
  • Clear your local git branches that have been merged (don't remove the ones that yous all the same need!).
  • Delete all those photoshopped pictures of your colleagues ( ͡° ͜ʖ ͡°).
  • Articulate your recycle bin.

Source: https://medium.com/back-market-engineering/put-your-android-studio-on-a-diet-fa4d364acb05#:~:text=Clear%20your%20project%20directory,option%E2%80%9D%20and%20close%20Android%20Studio.

Posted by: mcmichaelthingaing.blogspot.com

0 Response to "How To Clean Project In Android Studio"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel