Android Studio stuck on gradle resolving dependencies

后端 未结 15 1291
臣服心动
臣服心动 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:23

    Try looking at Gradle debug output. (My guess is IDE is not able to get to jcenter repository). Here is what you can try.

    1. Go to Settings> Compiler(Gradle-Based Android Project)
    2. In Command-line Options, add "--stacktrace --debug"
    3. Build your project
    4. Click and look at Gradle Console on the bottom right. You should see where gradle is choking up.

    How does your module "build.gradle" look like? you might want to add "mavenCentral()" under repositories block. (assuming you have dependencies that are found there)

提交回复
热议问题