解决Android Studio卡在Gradle:Resolve dependecies 'app:_debugCompile'问题

Posted johnsonshu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决Android Studio卡在Gradle:Resolve dependecies 'app:_debugCompile'问题相关的知识,希望对你有一定的参考价值。

转载:

http://blog.csdn.net/callzjy/article/details/53662073

关键代码

maven { url ‘http://maven.oschina.net/content/groups/public/‘ } 

完整代码

// Top-level build file where you can add configuration options common to all sub-projects/modules.  
buildscript {  
    repositories {  
        maven { url ‘http://maven.oschina.net/content/groups/public/‘ }  
        jcenter()  
    }  
    dependencies {  
        classpath ‘com.android.tools.build:gradle:2.3.0-alpha1‘  
  
        // NOTE: Do not place your application dependencies here; they belong  
        // in the individual module build.gradle files  
    }  
}  
allprojects {  
    repositories {  
        mavenLocal()  
        maven { url ‘http://maven.oschina.net/content/groups/public/‘ }  
        jcenter()  
        maven {  
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm  
            url "$rootDir/../node_modules/react-native/android"  
        }  
    }  
}  

 

以上是关于解决Android Studio卡在Gradle:Resolve dependecies 'app:_debugCompile'问题的主要内容,如果未能解决你的问题,请参考以下文章

Android Studio 一直卡在building解决办法

Android Studio卡在refreshing gradle project的原因和快速解决办法

解决Android Studio卡在Gradle:Resolve dependecies 'app:_debugCompile'问题

Android studio启动后卡在refreshing gradle project(包解决)

Android studio启动后卡在refreshing gradle project

Android studio启动后卡在refreshing gradle project