Apply:
You can configure Gradle wrapper to use distribution with sources.
It will provide IDE with Gradle API/DSL documentation.
后报错gradle同步失败:
Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
解决方案:
将all改成bin
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
- 改为:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-bin.zip