clean up your mac space

There are general cleaning tutorials on the Internet. I will not talk about it here. Here I will talk about how to reduce the burden on your mac based on the environment I developed. I will continue to update.
My pocket is tight, but I have no choice but to like the mac provided by the company. After leaving the company, I bought a mac pro 13 with a 128g hard drive. Thinking about it, it feels small, but I have no choice but to clean it up on time. I am a java + android developer. Here we will talk about how to clean up the disk androidstudio in combination with the project

- gradle
has a hidden folder .gradle in your home directory, switch to it jf $ cd wrapper/dists/
enter ls You will find many versions of gradle

gradle-2.11 -all gradle-2.2.1-all
gradle-2.14.1-all gradle-2.4-all

I have cleaned up a few above, and then look at the size of each version on the disk and enter du -s -h gradle-2.2. 1-all

180M gradle-2.2.1-all/

and then look at 2.11
221M gradle-2.11-all/




are basically 2-300m space. All right. Generally, I use 2.14.1 now, the latest one, so the others can be deleted depending on the situation, and I will use the old version and download it later.

I found a problem here, I have two android projects, enter gradlew -v in the built-in terminal of project a to start downloading gradle2.14.1, this is understandable, but I don't know why I changed project b and downloaded
it folders
Unzipping /Users/jiafei/.gradle/wrapper/dists/gradle-2.14.1-all/4cj8p00t3e5ni9e8iofg8ghvk7/gradle-2.14.1-all.zip to /Users/jiafei/.gradle/wrapper/dists/gradle-2.14.1 -all/4cj8p00t3e5ni9e8iofg8ghvk7


promote:gradle-2.14.1-all jf$ ls
4cj8p00t3e5ni9e8iofg8ghvk7 8bnwg5hd3w55iofp58khbp6yv

Instantly the folder doubled in size
promote:gradle-2.14.1-all jiafei$ du -s -h
456M






Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326357393&siteId=291194637