[Soloved] Gradle sync failed: Failed to open zip file

        After the as project is opened, an error is reported as follows:
Gradle sync failed: Failed to open zip file.
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
Consult IDE log for more details (Help | Show Log) (216 ms)

The reason is that the network was disconnected during the last compilation, resulting in incomplete resource download. Open the gradle/wrapper/gradle of the project- wrapper.properties File, view the distributionurl of the current project, find the corresponding version, and then go to the setting (not the project) – build, execution,… – gradle, gradle user home of as to find the directory under the folder, Delete the folder of the corresponding version.

Similar Posts: