MAC安装AndroidStudio
下载地址:
https://developer.android.google.cn/studio/
创建工程
下载Gradle
下载地址:
https://services.gradle.org/distributions/
选择 gradle-6.4.1-all.zip
,开始下载
配置Gradle
本地文件位置,生成文件夹及相应的哈希文件夹后,停止AndroidStudio的下载进程
~/.gradle/wrapper/dists/gradle-6.4.1-all
将下载好的gradle-6.4.1-all.zip放到对应的文件中并解压,如图所示
gradle-wrapper.properties
文件配置完成后,点击 Sync Now
完成提示下面内容
Control+R 运行工程