当前位置:   article > 正文

Android Studio,gradle project sync failed 错误_gradle error 1020

gradle error 1020

因某些原因,之前用Android Studio后卸载了,重新装了之后总是报gradle project sync failed.Basic functionality(eg.editing,debugging) will not work properly错,然后也总算是解决了

打开项目中..\gradle\wrapper\gradle-wrapper.properties文件。我的内容如下:

#Wed Dec 13 10:34:34 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip


打开最后一行中链接https://services.gradle.org/distributions/gradle-3.3-all.zip下载gradle-3.3-all.zip文件复制到

C:\Users\Administration\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9下。重新启动Android Studio。

没有报错。问题解决

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/270011
推荐阅读
相关标签
  

闽ICP备14008679号