Android Studio stuck on gradle resolving dependencies

后端 未结 15 1266
臣服心动
臣服心动 2020-12-04 22:11

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

15条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 22:35

    1. Cancel the Gradle build when its taking long time.

    2. Check the HTTP proxy settings in File-> Settings-> Appearance & Behavior -> System Settings -> HTTP Proxy. Verify using "Check connection"

    3. 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' })

提交回复
热议问题