How to solve the problem that Android studio is cached in the C drive, occupying the solid state drive and the computer is getting more and more stuck

1. Android studio installation location

My personal Android studio is installed on the solid state drive of the C drive, the purpose is to improve the running speed of the software, but we all know that the studio cache will occupy more memory of the C drive as the number of projects increases.

2. What are the cache files?

In the C drive user directory: .android studio .gradle .android and so on.

3. Solution

(1) Modify the configuration file of Android studio
Find bin folder of the Android studio installation directory. Open the idea.properties file and
modify the cache path in it.
write picture description here

As shown in the figure, modify idea.config.path, idea.system.path, idea.plugins.path
three places. . Modify it to your own place to be stored. Note:
First, remove the # comment, and second, modify the address of the plugin.

Because if you modify the cache address, when you download the plugin, it will be downloaded to the .android studio /system/plungins path by default. . In this way, Android studio restart will not read the newly downloaded plugin. However, there is one more important step:

In this way, the plugin is downloaded as a compressed package, so we need to manually decompress it ourselves.

4. Next, cut the files under the several paths we changed to the path set by yourself. . Or studio re-download the cache again

Guess you like

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