1 定位到目录 C:\Users\<username>\.gradle 2 创建文件gradle.properties 内容:org.gradle.jvmargs=-Xmx512m 3 重启你的Android Studio项目,搞定。