修改android studio
安装目录/bin/idea.properties
- idea.config.path=E:/environment/.AndroidStudio/config
-
idea.system.path=E:/environment/.AndroidStudio/system
全局配置gradle
file ===> settings ===> Build,Execution,Deployment ===> Gradle
Global Gradle settings
Service directory path: E:\environment.gradle
Project-level settings
- 选中Use local gradle distribution
- Gradle home:
参考:https://blog.csdn.net/fuchaosz/article/details/51567808