使用react-native新建项目,Android Studio运行android,编译失败,报以下错误:
Error: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)
在gradle-wrapper.properties里修改gradle的版本,现在是3.5.1,改为之前的gradle版本3.3,就可以了。
sybil052-20180908-134634.png
网友评论