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
I was heaving the same/similar problem:
Error:A problem occurred configuring root project 'X'. Could not resolve all dependencies for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:0.12.+. Required by: :X:unspecified Failed to list versions for com.android.tools.build:gradle. Could not list versions using M2 pattern 'http://jcenter.bintray.com/[organisation]/[module]/[revision]/[artifact]-revision.[ext]'. Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle/'. Received status code 401 from server: Authorization Required
But I resolved it by calling synchroise and then rebuilding the project.