I\'m new to Android Studio and while creating a new project it stuck at resolving dependencies :app:_debugCompile
.
I waited for sometime and even tried
Cancel the Gradle build when its taking long time.
Check the HTTP proxy settings in File-> Settings-> Appearance & Behavior -> System Settings -> HTTP Proxy. Verify using "Check connection"
If fine, remove the android test compile and/or unit test build from app/build.gradle file e.g remove the below line
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' })