java - InteliJ -- Gradle 'test' project refresh failed Error:Error:Could not create parent directory for lock file -


i new gradle, using intelij, start new project using using gradle, when try refresh build.gradle, says

gradle 'test' project refresh failed     error:error:could not create parent directory lock file c:\program files\gradle-2.7\wrapper\dists\gradle-3.5-rc-2-bin\ktl4k9rdug30mawecgppf5ms\gradle-3.5-rc-2-bin.zip.lck 

any ideas how fix this?

this build.gradle

group 'com.maxinrui' version '1.0-snapshot'  buildscript{     repositories{         mavencentral()     }     dependencies{         classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.2.6.release'     } }  apply plugin: 'java'  sourcecompatibility = 1.8  repositories {     mavencentral() }  dependencies {     compile 'org.springframework.boot:spring-boot-starter-web:1.2.6.release' } 

i think issue classpath, check build path. if not set need set. can set classpath 'com.android.tools.build:gradle:2.3.0' , add distributionurl=https\://services.gradle.org/distributions/gradle-3.3-all.zip gradle-wrapper.properties file.

then sync project.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -