Accidentally found that the project folder for Android Studio is much larger than the ADT bundle.
Create a new empty project with Android Studio, with a project folder size of 30M and a size of 40M after running once.
Also use ADT bundle to create a new empty project, the project folder size of 1.5M, run once after the size of 3.8M.
Oh, my God! Android Studio works at least 10 times times larger than ADT bundle projects!
What is this for?
with doubts open the Android Studio project folder, in the < engineering root directory >\build\ Generated folder found a file called Mockable-android-23.jar, this goods unexpectedly has 22M big! and under every project!
This file is relatively small on the web, but two useful introductions are found:
http://stackoverflow.com/questions/34853185/how-to-use-mockableandroidjar
http://blog.csdn.net/u010331406/article/details/51736211
Span style= "FONT-SIZE:16PX;" In general, this file is used for unit testing, but the function is still in the experimental stage, do not want to use can be closed.
Say so much, whether you shut down, anyway, I want to shut down. haha ~
It is easy to switch off, find experimental in the settings, and remove the 3rd option. Borrowed the above that csdn Bo friend, here to express my thanks!
After removing the hook, clean the project, the project size reduced by 20M. The new project will not have this file, the previous project clean will also delete the file. Each project is reduced by 20M and the total amount is considerable.
However, after removing the large file, the Android Studio project is much larger than the ADT bundle. It may not be as small as the ADT Bundle project, after all, there are two different development environments, but hopefully it will be smaller. Bo friends have any other ways to lose weight to the project?
Why is the Android Studio project folder taking up so much space? We're going to give it a weight loss.