<span id="Label3"></p><p><p>1. Upgrade Gradle</p></p><p><p>Go to the project folder <span class="hljs-variable">$project/gradle/wrapper/gradle<span class="hljs-attribute">-wrapper<span class="hljs-built_in">. Properties</span></span></span>, using the latest Gradle. Modify to replace with the latest</p></p><p><p>Distributionurl=https\<span class="hljs-symbol">://services.gradle.org/distributions/gradle-<span class="hljs-number">2.9-all.zip</span> </span></p></p><p><p><span class="hljs-symbol">2. Upgrade the Gradle plugin (plugin), using the latest Gradle Dependencies.</span></p></p><p><p>buildscrpt {<br>dependencies {<br>Classpath ' com.android.tools.build:gradle:1.5.0 '<br>}<br>}</p></p><p><p>3. Set Development Minimum SDK version</p></p><p><p>Android {<br>productflavors {<br>Dev {minsdkversion 21}<br>Prod {minsdkversion 14}<br>}<br>}</p></p><p><p>At development time, use the lowest SDK version to 21. the project Generation APK package is divided into two steps, the first to convert dex, and the second to synthesize dex, but version 21+ uses the Android runtime (android Runtime) to generate the APK and does not need to merge dex, so speed up, The 65K method can also be Solved.</p></p><p><p>4. Add Gradle property, Modify Gradle.properties</p></p><p><p>Org.gradle.daemon=true<br>Org.gradle.parallel=true<br>Org.gradle.jvmargs=-xmx768m</p></p><p><p>5. Using the incremental dex,</p></p><p><p>Dexoptions {incremental true}</p></p><p><p></p></p><p><p>Original</p></p><p><p></p></p><p><p>Android Accelerated Gradle Build Project</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