实例解决办法Android Studio:design editor is unavailabel until after a successful project sync. / Gradle
Posted 优爱酷
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了实例解决办法Android Studio:design editor is unavailabel until after a successful project sync. / Gradle 相关的知识,希望对你有一定的参考价值。
【实例解决办法】android Studio:design editor is unavailabel until after a successful project sync. / Gradle sync failed: Failed to open zip file. 解决办法
视频链接:优爱酷AndroidStudio安卓移动应用app开发 发行版 - Gitee.com
Android Studio设计编辑器不可用GradleSync方法
运行 Android Studio在Design模式下显示如下提示:
“design editor is unavailabel until after a successful project sync.”
按照错误日志的提示:“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) (66 ms) (moments ago)”。
如下给我Android Studio design editor is unavailabel Gradle sync failed的解决办法
方法/步骤
-
运行 Android Studio在Design模式下显示如下提示:
“design editor is unavailabel until after a successful project sync.”
-
按提示重新下载也无济于事
-
右键后点击“Show in Exploer”在资源管理器中打开
-
复制distributionUrl=https\\://services.gradle.org/distributions/gradle-6.5-bin.zip中的 https://services.gradle.org/distributions/gradle-6.5-bin.zip
-
用浏览器下载太慢(报错原因)改用下载软件下载
-
定位到
C:\\Users\\用户名\\.gradle\\wrapper\\dists\\gradle-6.5-bin\\6nifqtx7604sqp1q6g8wikw7p
将AS下载失败的包全部删掉
-
将我们下载的完整包粘贴进去
-
再次点击重新下载链接
-
开始重新安装
-
最终完美运行设计编辑器
以上是关于实例解决办法Android Studio:design editor is unavailabel until after a successful project sync. / Gradle 的主要内容,如果未能解决你的问题,请参考以下文章
Android性能优化之利用LeakCanary检测内存泄漏及解决办法(转)