idea gradle 安装失败
文件下载地址
- gradle-> wrapper- > gradle-wrapper.properties
默认安装位置
- ~/. gradle
- 当前项目 ~/. gradle
下载地址
设置grable jdk
- Preferences | Build, Execution, Deployment | Build Tools | Gradle
- 不要勾选 Gererate * iml
- 勾选下载 Downlaod extranal
版本设置
- build.gradle sourceCompatibility
- build and run 设置需要一样
设置中央仓库
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/apache-snapshots' }
mavenCentral()
本文来自博客园,作者:vx_guanchaoguo0,转载请注明原文链接:https://www.cnblogs.com/guanchaoguo/p/17164196.html