使用IDEA插件新建CUBA项目构建报错!!

image
image
FAILURE: Build failed with an exception.

  • Where:
    Initialization script ‘C:\Users\user\AppData\Local\Temp\ijinit.gradle’ line: 41

  • What went wrong:
    A problem occurred evaluating initialization script.

org/jetbrains/plugins/gradle/tooling/ModelBuilderService$Ex

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s

请上传一下 IDEA 的 log

idea-logs-20210106-114114.zip (38.7 KB)

从错误看,应该是 Gradle 下载不下来:

2021-01-06 11:41:05,142 [  23553]   INFO - .project.GradleProjectResolver - Gradle project resolve error 
org.gradle.tooling.GradleConnectionException: Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-5.6.4-bin.zip'.

在你的 home 目录的 .gradle 中的 gradle.properties 文件设置超时长一些再试试:

systemProp.org.gradle.internal.http.connectionTimeout=120000
systemProp.org.gradle.internal.http.socketTimeout=120000