Why is the space occupied by Android Studio project folders so large? Let's reduce the weight for it, androidstudio
The Android Studio project folder is much larger than the ADT Bundle.
Create an empty project with Android Studio. The project folder size is 30 mb, And the size is 40 MB after one operation.
Similarly, use ADT Bundle to create an empty project. The project folder size is 1.5 MB, and the size after one operation is 3.8 MB.
Oh, my God! The Android Studio project is at least 10 times larger than the ADT Bundle project!
Why?
Open the Android Studio project folder with doubts, In the <project root directory> \ build \ generated folder found a file called mockable-android-23.jar, this goods actually has 22 m big! And each project has one!
There are few introductions to this file on the Internet, but I still find two useful introductions:
Http://stackoverflow.com/questions/34853185/how-to-use-mockableandroidjar
Http://blog.csdn.net/u010331406/article/details/51736211
In general, this file is used for unit testing, but this function is still in the experimental stage and can be disabled if you do not want to use it.
This function is enabled by default, and if it is not closed, such a large jar file will be generated in each project.
It would be nice to share such a jar file globally on the computer, but not for the moment.
After talking about this, whether you close it or not, I want to close it. Haha ~
It's easy to turn it off. Find Experimental in settings and remove the 3rd options. Thanks to the above CSDN blogger!
After removing the check box, clean the project and reduce the project size by 20 mb. This file will not be created for the new project in the future. If you clean the previous project, the file will be deleted. Each project is reduced by 20 M, and the total amount is considerable.
However, after removing this large file, the Android Studio project is much larger than the ADT Bundle project. It may not be as small as the ADT Bundle project. After all, it is two different development environments, but it is still expected to be reduced. Are there any other ways for bloggers to lose weight?