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()
posted @ 2023-02-28 14:34  vx_guanchaoguo0  阅读(332)  评论(0编辑  收藏  举报