Why is the space occupied by Android Studio project folders so large? Let's reduce the weight for it, androidstudio

Source: Internet
Author: User
Tags introductions

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?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.