在 Gradle 上创建新项目时,Android Studio 卡住:配置项目或 Gradle:解决依赖项 ':classpath:' [英] Android Studio stuck when creating new Project on Gradle: Configure Project or Gradle: Resolve Dependencies ':classpath:'

查看:64
本文介绍了在 Gradle 上创建新项目时,Android Studio 卡住:配置项目或 Gradle:解决依赖项 ':classpath:'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用新项目向导创建新的 Android 应用程序时,IDE 卡住了,我什至无法看到代码文件.在尝试创建多种类型的项目后,它告诉我它正在构建并且 IDE 只显示一个加载框,上面写着:

Using the new project wizard to create a new Android application, The IDE gets stuck before I can even see the Code files. After trying to create many types of projects, It tells me that it is building and the IDE only shows a Loading box that says either:

Gradle: Configure Project 

Gradle: Resolve Dependencies ':classpath:'

我出去吃午饭,回来时看到:

I went out to lunch and when I came back I saw:

错误:无法 HEAD 'http://jcenter.bintray.com/com/android/tools/build/builder-model/0.12.1/builder-model-0.12.1.jar'.从服务器收到状态代码 500:内部服务器错误启用 Gradle 的离线模式"并同步项目

Error:Could not HEAD 'http://jcenter.bintray.com/com/android/tools/build/builder-model/0.12.1/builder-model-0.12.1.jar'. Received status code 500 from server: Internal Server Error Enable Gradle 'offline mode' and sync project

推荐答案

由于达拉斯的一个集群节点发生了变化,Bintray 昨天遇到了暂时的超时.看起来您恰好在那个确切的时间击中了那个确切的节点.

Bintray has experienced momentary timeouts yesterday due to a change to one of the cluster nodes in Dallas. It looks like you've happened to hit that exact node at that exact time.

几分钟后该问题已解决,因此您无需更改任何内容.

The issue has been sorted out after a couple of minutes, so there is no real need to change anything on your side.

实际上,最好在脚本中保留 jcenter(),因为它是 Maven Central 的超集.

Actually, keeping jcenter() in your script is preferable since it's a super-set of Maven Central.

这篇关于在 Gradle 上创建新项目时,Android Studio 卡住:配置项目或 Gradle:解决依赖项 ':classpath:'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆