Improve Android studio run, compile speed scenarios

Source: Internet
Author: User
1. After the installation is complete, the card dies.

Just opened studio on the Gradle building interface no longer moving (to connect to the wall of the network download), then we need to screen this internet download operation, find the studio installation directory, Locate the Idea.properties file, open it, add the following line to the configuration, the role of the initial opening to not let it connect to Google to update.

disable.android.first.run=true
2. Change the VM size of Studio

As limit the size of the Java Virtual machine startup memory, limit the maximum heap memory, when as run longer, memory is insufficient, will be frequently triggered gc,as will naturally get stuck, serious direct black screen, so, we put the corresponding required memory are configured larger, The 32-bit system opens the Studio.exe.vmoptions file, and if it is 64-bit open studio64.exe.vmoptions, change the following configuration to adjust appropriately according to the respective configuration.

-Xms512m-Xmx4096m-XX:MaxPermSize=2048m-XX:ReservedCodeCacheSize=1024m
3, open the File->settings->appearance &behavior->system setting->updates, the two selection boxes are unchecked.

Improve Android studio run, compile speed scenarios

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.