How to Free Up Disk Space in Android Studio

How to Free Up Disk Space in Android Studio

Hot Articles | Click Title to Read

How to Level Up and Find a Suitable Job in the Job-Hopping Season of September and October?

Real and Reliable: Baidu’s Job Levels, T Series, Salaries, and Promotion Rules

My Ten Years of Technical Insights at Alibaba

Is your disk space running low after using Android Studio for a long time?

You might need this

Taking Windows 10 as an example

First, a reminder: If you cannot delete a directory, it might be due to the character length of the directory being too long. Simply rename those long ones before deleting them. For bulk renaming, press ctrl+A to select all, then right-click and choose rename.

How to Free Up Disk Space in Android Studio

Directory too long

First, go to your user directory C:\Users\Administrator (Administrator is the username)

How to Free Up Disk Space in Android Studio

User Directory

In the above image:

  • .gradle contains files related to Gradle compilation.

  • .lldb is the folder generated during debug when the NDK path is configured. If you don't need to debug .so files, just uninstall the NDK from the SDK.

  • .AndroidStudio3.0 is the folder for the Android Studio version. If you are using version 3.0.1, you can delete similar folders like 2.2.3.

First, check the .lldb directory and go to C:\Users\Administrator\.lldb\module_cache\remote-android\.cache. You will see a directory similar to the one in the image below. This folder is generated every time you debug when the NDK path is configured in local.properties file in the project directory. Simply sort by modification time and delete the folders that are older than the current date.

How to Free Up Disk Space in Android Studio

.lldb

Alternatively, you can comment out the path in local.properties file in the project directory that looks like ndk.dir=D:\Android\sdk\ndk-bundle, then delete the entire .lldb directory or simply uninstall the NDK for faster debugging.

How to Free Up Disk Space in Android Studio

Uninstall NDK

Next, regarding .gradle, the caches, wrapper, and daemon directories all cache all the projects previously compiled by Android Studio based on the Gradle version configured in gradle/wrapper/gradle-wrapper.properties. Therefore, we can delete older versions and those we don’t need.

How to Free Up Disk Space in Android Studio

gradle-wrapper.properties

For the caches directory: C:\Users\Administrator\.gradle\caches delete unnecessary versions (such as 3.1, 3.3, etc.).

How to Free Up Disk Space in Android Studio

caches

For the wrapper directory: related to the source files of the Gradle version, similarly delete unnecessary versions C:\Users\Administrator\.gradle\wrapper\dists.

How to Free Up Disk Space in Android Studio

Gradle version

For the daemon directory: C:\Users\Administrator\.gradle\daemon contains Gradle compilation logs, also delete unnecessary versions and previous log files from the required versions.

How to Free Up Disk Space in Android Studio

How to Free Up Disk Space in Android Studio

Gradle compilation log files

Supplement:

When NDK is configured, the debug information of .so files will be removed during packaging, so you may find that the package built with NDK configured is smaller than the one built without NDK.

Want to join Tencent and Alibaba? Join our knowledge circle below!

How to Free Up Disk Space in Android Studio

If you find this useful, feel free toshare How to Free Up Disk Space in Android Studio

「LikeHow to Free Up Disk Space in Android Studio「Comment How to Free Up Disk Space in Android Studio

Mom often teaches me to develop good habits. This way, I can grow up to be a useful person. Good habits include respecting teachers, caring for classmates, being polite to others; being attentive, not procrastinating; and taking care of public property, not wasting food. Why? Because having good habits and being a person of high moral character, who knows how to respect others, will earn respect in return. I will strive to achieve these. I have some bad habits; sometimes I am careless in my studies and make mistakes on questions I can solve. In life, I am also careless; once, I even wore my clothes inside out when I got up in the morning. I eat slowly, sometimes leaving food on my plate. I also dawdle in the morning when I should quickly get dressed, but I always take my time, being very slow.I plan to change these bad habits this semester. In the morning, I will quickly get dressed without procrastinating. I will be careful in my studies and complete every question meticulously. During meals, I will eat quickly and not leave food. I will start with small steps to gradually develop good habits. I believe I can become an excellent student with both good character and academics! I plan to change these bad habits this semester. In the morning, I will quickly get dressed without procrastinating. I will be careful in my studies and complete every question meticulously. During meals, I will eat quickly and not leave food. I will start with small steps to gradually develop good habits. I believe I can become an excellent student with both good character and academics!Before going to kindergarten, I couldn’t do anything; even getting dressed was done by my mom. But I have to go to kindergarten, and that won’t do. My mom trained me to learn to dress myself. One day, my mom placed the clothes in front of me and started to let me dress myself. At first, I cried and refused to wear them, throwing the clothes all over the floor and then sitting on the ground crying. After a long wait, my mom still ignored me, so I had to obediently put on the clothes. When I stepped out the door, my mom laughed. Looking at my clothes, my sweater and pants were both worn inside out. I hurried back to my room to change again, and this time I got it right. I picked up my coat, but I couldn’t fasten the buttons. The buttons seemed to be mischievous, as if they were deliberately opposing me. I tried to button them into the buttonholes.——The root of evil in humanity; love——the source of happiness and light. I have been wandering on the stage of these thoughts. Suddenly, I saw two figures pass by me, sitting on the grass not far away. They were a young couple coming from the fields. There were farmers’ cottages beyond the fields. After a moment of sad silence, with a long sigh, I heard a tuberculosis patient say this: happiness and light. I have been wandering on the stage of these thoughts. Suddenly, I saw two figures pass by me, sitting on the grass not far away. They were a young couple coming from the fields. There were farmers’ cottages beyond the fields. After a moment of sad silence, with a long sigh, I heard a tuberculosis patient say this: happiness and light. I have been wandering on the stage of these thoughts. Suddenly, I saw two figures pass by me, sitting on the grass not far away. They were a young couple coming from the fields. There were farmers’ cottages beyond the fields. After a moment of sad silence, with a long sigh, I heard a tuberculosis patient say this: happiness and light. I have been wandering on the stage of these thoughts. Suddenly, I saw two figures pass by me, sitting on the grass not far away. They were a young couple coming from the fields. There were farmers’ cottages beyond the fields. After a moment of sad silence, with a long sigh, I heard a tuberculosis patient say this: happiness and light. I have been wandering on the stage of these thoughts. Suddenly, I saw two figures pass by me, sitting on the grass not far away. They were a young couple coming from the fields. There were farmers’ cottages beyond the fields. After a moment of sad silence, with a long sigh, I heard a tuberculosis patient say this: happiness and light. I have been wandering on the stage of these thoughts. Suddenly, I saw two figures pass by me, sitting on the grass not far away. They were a young couple coming from the fields. There were farmers’ cottages beyond the fields. After a moment of sad silence, with a long sigh, I heard a tuberculosis patient say this: happiness and light. I have been wandering on the stage of these thoughts. Suddenly, I saw two figures pass by me, sitting on the grass not far away. They were a young couple coming from the fields. There were farmers’ cottages beyond the fields. After a moment of sad silence, with a long sigh, I heard a tuberculosis patient say this: happiness and light.Dear! Wipe your tears, the supreme love has opened our eyes, making us its worshippers. It is it,

If you have good articles to share: feel free to submit articles directly to me

Finally, the National Day benefit is here. Our knowledge circle has reached 1000 people. As previously mentioned, when we reach 1000 people, the price will significantly increase to 169 yuan. To thank everyone for their attention and support, we will maintain the current price of 99 yuan for one last day. After today (tonight 00:00), it will rise to 169 yuan. Welcome to join our knowledge circleFor more information on the circle, see:

How to Level Up to Become a Java Android Developer and Architect?

How to Level Up and Find a Suitable Job in the Job-Hopping Season of September and October?

Two Things to Mention

How to Free Up Disk Space in Android Studio

Scan the QR code above to receive advanced resources for Android, Python, AI, Java, etc.

For more learning materials, click below to get the“Read the Original Text”

How to Free Up Disk Space in Android Studio

Leave a Comment