Why is the Android Studio project folder taking up so much space? We're going to give it a weight loss.

Source: Internet
Author: User

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.

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.