Android Studio 2.2.3 Gradle Build Stuck

我下载android studio 2.2.3并加载我的项目.但Gradle Build Run Stuck.它不断显示,我无法运行我的应用程序.什么问题可以帮助我吗?

Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]

enter image description here

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
如果您位于代理后面,请使用以下命令在build.gradle文件旁边创建一个gradle.properties文件:

systemProp.http.proxyHost=YOUR_PROXY
systemProp.http.proxyPort=YOUR_PORT
systemProp.http.proxyUser=USERNAME
systemProp.http.proxyPassword=PASSWORD

systemProp.https.proxyHost=YOUR_PROXY
systemProp.https.proxyPort=YOUR_PORT
systemProp.https.proxyUser=USERNAME
systemProp.https.proxyPassword=PASSWORD

如果您不需要登录代理,则不需要systemProp.http [s] .proxyUser和systemProp.http [s] .proxyPassword.在这种情况下,请删除这些行.

https://stackoverflow.com/questions/41502164/android-studio-2-2-3-gradle-build-running-stuck

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:Android Studio 2.2.3 Gradle Build Stuck