Gradle build Speed accelerates the Ultimate method (Android Studio)

Source: Internet
Author: User

Android Studio used to get more comfortable, but found that the speed of the build is not a compliment, in Google and degrees Niang a few (.... After that, the overall allocation of higher memory, step:setting--> search Gradle-->build tools under the Gradle option, the right gradle VM options--> parameter-xmx2048m-xx: maxpermsize=512m

And one is to add two lines to the gradle.properites.
Org.gradle.parallel=true
Org.gradle.daemon=true

Does the above really have ascension? I do not know, anyway build speed is still 3 minutes up and down, this is completely unacceptable, build can next a high-definition AV, hard disk is almost full, but also add hard disk, this month's food quality to drop, to thin out 8 abs ....

Well, the above is nonsense, how to build at lightning speed, set offline compilation is OK, like this:

Set the speed before

After setting the speed

That's called Ascension, OK?

Gradle build Speed accelerates the Ultimate method (Android Studio)

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.