<span id="Label3"></p><p><p>Android Studio is really good, but the build speed is incredibly slow!!!!<br>I searched the internet for a lot of build acceleration settings, but not fit into my 1.3RC version ..... Heart plug, no resistance, endure super invincible slow speed obstinately over a week. of course, this week almost every day to find out the settings ..... until, today.</p></p><p><p>I'm really happy and broken,!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!. aha haha haha haha<br>By chance, I got into the appendix. D. Gradle Command Line<br>Look at the relevant command line, set it up, ok. Hey</p></p><strong><strong>before setting, compile to 5min+, even 10min. After setting, around 10s. It feels good to fly. </strong></strong><p><p>Here is how to set it, in fact very simple, a few minutes of the Matter.</p></p><p><p>(1) Setting up Android Studio</p></p><strong><strong>A) Disabling Plugins</strong></strong><p><p>File--Settings ... Plugins remove some unused plugins.<br>For example: Git integration, GitHub, google cloud testing, Google Cloud Tools for Android Studio, goole Login, google Services, JavaFX, SDK Updater, Subversion integration, Terminal, testng-j.</p></p><p><p><strong>(2) Setting Gradle</strong><br>A) Turn on daemon<br>Gradle.properties<br>Org.gradle.daemon=true//android Studio uses daemon by default, <strong>so you can not set it. </strong><br>Command Line: –daemon</p></p><p><p><strong>b) start Parallel mode</strong><br>Gradle.properties<br>Org.gradle.parallel=true//multiple decoupled projects, Parallel compilation<br>File--Settings ... Build>compiler set –parallel–max-workers=4 in the command-line options<br>Command line:<strong>-parallel–max-workers=4</strong></p></p><p><p><strong>C) Demand</strong><br>Gradle.properties<br>Org.gradle.configureondemand=true<br>File--Settings ... Build>compiler default Configure on Demand is checked<br>Command line:<strong>–configure-on-demand</strong></p></p><p><p>D) offline (requires networking is Re-set)<br>File--Settings ... Build>build tools>gradle <strong>Tick offline</strong> work</p></p><p><p>Related Pictures:<br></p></p><p><p>Easy to copy command-line instructions:</p></p><p><p>–configure-on-demand–offline–parallel–max-workers=4</p></p><p><p>Since my computer is 4 threads, so maxworkers = 4, If your computer is 8 thread, set to 8 will be better oh! As to how to check their own computer is a few threads, Baidu bar ~</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>Share it for the benefit of society <del>~</del>~~~~~~~~~~</p></p> <p style="font-size:12px;"><p style="font-size:12px;">Copyright Notice: This article for Bo Master original article, without Bo Master permission not Reproduced.</p></p> <p><p>Android Studio version 1.3RC build acceleration</p></p></span>
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