Mac Android Studio 提升Mac的编译速度

方法1:加大Mac的编译内存,打开Android Studio的安装目录,修改全局配置

方法2:打开dex增量编译

在Module的build.gradle中添加如下代码

dexOptions {

incremental true

}

方法3:修改gradle设置

然后打开文件并添加:

org.gradle.daemon=true

org.gradle.parallel=true

org.gradle.configureondemand=true

org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

相关推荐
Digitally5 分钟前
如何将照片从vivo手机传输到电脑
android
小兔薯了9 小时前
7. LNMP-wordpress
android·运维·服务器·数据库·nginx·php
L***d6709 小时前
mysql的主从配置
android·mysql·adb
8***848210 小时前
macOs安装docker且在docker上部署nginx+php
nginx·macos·docker
Aurora-silas10 小时前
Mac 本地运行 Hugging Face 大模型完全指南:PyTorch (MPS) vs Apple MLX
人工智能·pytorch·macos
Sammyyyyy11 小时前
PHP 8.5 新特性:10 大核心改进
android·php·android studio
8***848211 小时前
macOS安装Redis
数据库·redis·macos
TO_ZRG11 小时前
Unity 通过 NativePlugin 接入Android SDK 指南
android·unity·游戏引擎
n***840711 小时前
Springboot-配置文件中敏感信息的加密:三种加密保护方法比较
android·前端·后端
小镇学者12 小时前
【PHP】macos 系统 git pull 时 报错File name too long问题
git·macos·php