修改gradle-wrapper.properties中的distributionUrl,然后sync时报错,信息如下:
-
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network) -
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
这是因为Project下的build.gradle中的com.android.tools.build:gradle版本低,提高其版本试一下,如果不行在使用提示中的方法。