zoukankan      html  css  js  c++  java
  • Android Studio -- 优化速度

    Android Studio -- 优化速度


    enter description here

    一言:告诉你我最喜欢的一句话吧!要是被处于下风就要以牙还牙!


    环境

    win10
    Android Studio 安装路径:C:Program FilesAndroidAndroid Studio


    取消开启自动更新

    enter description here

    定位到 File --> Setting --> Appearance & Behavier --> System settings --> Update,去掉 “Atuomatically updates check for” 的勾,点击 Apply

    enter description here

    关闭更新


    增加虚拟内存,防止卡顿

    在 AS 安装目录下找到 studio64.exe.vmoptions 修改以下参数

    # 最小值
    -Xms256m
    
    # 最大值
    -Xmx2048m
    

    2028m 不够的话可以往上调,但是得要保证自己电脑的内存足够,个人理解

    enter description here


    本人的电脑修改了上面的两项在速度上和卡顿上算是优化了挺多,在网上也找了其他的方法,试着效果一般,一并整理在这里吧


    开启 gradle 单独的守护进程

    增大gradle运行的java虚拟机的大小,让gradle在编译的时候使用独立进程,让gradle可以平行的运行

    定位到 C:Users<username>.gradle,打开(创建)gradle.properties文件,添加内容

    org.gradle.daemon=true
    

    启动优化

    定位到安装目录下的 bin 下面,打开 idea.properties,末尾添加

    disable.android.first.run=true
    

    enter description here

    诚觉,不知道这个是优化什么的……


    优化编译

    打开设置页面 File -> Settings -> Build,Execution,Deployment -> Compiler,除第二项外都打勾

    enter description here


    取消自动下载第三方库

    打开设置页面 File -> Settings -> Build,Execution,Deployment -> Gradle,OffLine work 打上勾

    enter description here


    总结

    以此,继续折腾


  • 相关阅读:
    套接字IO超时设置和使用select实现超时管理
    登录页面2
    tornado后台小框架
    form表单,登录用户,密码,按钮,提交、重置
    图标,空格,大小尖括号,段落,换行,标题,div白板,span白板
    html中head示例
    centos7中mysql不能输入中文问题的解决
    ORM多对多的实现
    多外键关联
    ORM外键关联
  • 原文地址:https://www.cnblogs.com/pinsily/p/7611088.html
Copyright © 2011-2022 走看看