2017.2 cannot use gradle wrappper, like a bug! 已回答 Permanently deleted user 创建于 2017年08月27日 15:59 https://youtrack.jetbrains.com/issue/IDEA-178086
If the wrapper was downloaded correctly, there will be the following files:
These files are not shown on your screenshots. Instead you have .lck and .part files.
Could you please check if .zip files are available in the wrapper/dists/... after you run gradlew clean build?
@ Serge Baranov
I'm sure the download is complete。use terminal execute "./gradlew clean build" and "./gradlw :bootRun" both ok.
use IDEA 2017.1.5 is OK
IDEA 2017.2.2
wrapper complete -> http://picture.antergone.com/blog/u3lbb.jpg
import prohect -> http://picture.antergone.com/blog/gihod.jpg
dowload -> http://picture.antergone.com/blog/euybf.jpg
Why is there .lck file present? Could it be that it triggers the download?
delte my wrapper folder and retry
wrapper complete -> http://picture.antergone.com/blog/i6ioo.jpg
import project -> http://picture.antergone.com/blog/68f6m.jpg
reolve libiary -> http://picture.antergone.com/blog/tvpqf.jpg
create index -> http://picture.antergone.com/blog/x2611.jpg
clean refresh gradle -> http://picture.antergone.com/blog/o3t6p.jpg
download ??? --> http://picture.antergone.com/blog/rw19t.jpg
list folder -> http://picture.antergone.com/blog/27qkn.jpg
if I change the wrapper version
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}
execute "gradle wrapper" to generate gradle.properteis
rm -rf ${PROJECT_DIRECTORY}/.idea ${PROJECT_DIRECTORY}/.gradle
re-import this project and click refresh button
list gradle wrapper folder
http://picture.antergone.com/blog/hp463.jpg