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


    总结

    以此,继续折腾


  • 相关阅读:
    浅谈Oracle12c 数据库、用户、CDB与PDB之间的关系
    ECLIPSE快捷键
    Oracle12cWindows安装、介绍及简单使用(图文)
    金士顿DT100 G3 PS2251-07海力士U盘量产修复成功教程
    tomcat绑定域名
    TCP慢启动、拥塞避免、快速重传、快速恢复
    理解HTTP幂等性
    TCP协议缺陷不完全记录
    Nginx模块开发入门
    一步步构建大型网站架构
  • 原文地址:https://www.cnblogs.com/pinsily/p/7611088.html
Copyright © 2011-2022 走看看