Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio stuck when creating new Project on Gradle: Configure Project or Gradle: Resolve Dependencies ':classpath:'

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 

or

Gradle: Resolve Dependencies ':classpath:'

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

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

like image 485
MHDante Avatar asked Jul 07 '14 23:07

MHDante


People also ask

How do I sync Gradle with dependencies?

Simply open the gradle tab (can be located on the right) and right-click on the parent in the list (should be called "Android"), then select "Refresh dependencies".

Why is my Gradle not syncing?

For this, you have to connect your PC to the internet and you have to open your Android studio. After opening your project click on the Sync Project with Gradle files option. This will automatically download the new Gradle files and will fix the issue which is caused by the Gradle files.


1 Answers

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.

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

like image 132
JBaruch Avatar answered Sep 22 '22 09:09

JBaruch