Android Studio Compilation Card dead

Source: Internet
Author: User

First, As/bin/*.exe.vmoptions

#
# *do not* Modify this file directly. If there is a value of you would like to override,
# add it to your user specific configuration file.
#
# See Http://tools.android.com/tech-docs/configuration
#
-xms256m
-xmx2048m
-xx:maxpermsize=512m
-xx:reservedcodecachesize=240m
-xx:+useconcmarksweepgc
-xx:softreflrupolicymspermb=50
-da
-djna.nosys=true
-djna.boot.library.path=

-djna.debug_load=true
-djna.debug_load.jna=true
-dsun.io.usecanoncaches=false
-djava.net.preferipv4stack=true
-xx:+heapdumponoutofmemoryerror
-didea.paths.selector=androidstudio2.1
-didea.platform.prefix=androidstudio

Second, the user/.gradle/gradle.properties (without directly creating the properties file themselves)

# project-wide Gradle settings.
# IDE (e.g. Android Studio) Users:
# Settings specified in this file would override any Gradle Settings
# configured through the IDE.
# For more details about how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# The Gradle daemon aims to improve the startup and execution time of Gradle.
# When set to True the Gradle daemon are to run the build.
# todo:disable daemon on CI, since builds should is clean and reliable on servers
Org.gradle.daemon=true
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default Value:-xmx10248m-xx:maxpermsize=256m
Org.gradle.jvmargs=-xmx2048m-xx:maxpermsize=512m-xx:+heapdumponoutofmemoryerror-dfile.encoding=utf-8
# when configured, Gradle'll run in incubating parallel mode.
# This option is should only is used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Org.gradle.parallel=true
# enables new incubating mode that makes Gradle selective when configuring projects.
# only relevant projects is configured which results in faster builds for large multi-projects.
# Http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:configuration_on_demand
Org.gradle.configureondemand=true
# project-wide Gradle settings.

Again

Finally, as many articles say to open gradle offline mode, here I would like to say, based on the use of experience, first of all to do Android, you have to FQ, I do not recommend that people unfamiliar with gradle directly to open the mode, this is one, the second use as, you must remember the anti-virus software or firewall shut down , a number of defenders and animal defenders often led me to compile suspended animation, when I also back and forth to set back and forth.

Android Studio Compilation Card dead

Related Article

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.