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:
- Error:Failed to open zip file. Gradle‘s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
- Android — problem — Open someone else’s program and report an error
- Plugin is too old, please update to a more recent
- Gradle‘s dependency cache may be corrupt [How to Solve]
- Android studio import project, error e rror:Unsupported method : BaseConfig.getApplicationIdSuffix().
- Android Studio ERROR: SSL peer shut down incorrectly (Solved)
- Android Studio Project Error: gradle project sync failed.Basic
- Android Studio Can not Find “Sync project with Gradle Files”
- [Solved] Could not find method google() for arguments [] on repository container,rn react-native-camera …
- [Solved] Could not resolve com.android.support:appcompat-v7:28.0.0