Android 无法在添加rippleeffect库时使用gradle发行版2.14.1运行生成gradle

Android 无法在添加rippleeffect库时使用gradle发行版2.14.1运行生成gradle,android,android-gradle-plugin,build.gradle,Android,Android Gradle Plugin,Build.gradle,该项目运行良好,但当我尝试使用ripple effect库时,添加了这两个库中的任何一个- compile 'com.github.traex.rippleeffect:library:1.3' compile 'com.balysv:material-ripple:1.0.2' Gradle构建过程似乎陷入了解决依赖关系的困境:app debug compile和取消它时,我得到了这个日志错误 Error:Could not run build action using Gradle dis

该项目运行良好,但当我尝试使用ripple effect库时,添加了这两个库中的任何一个-

compile 'com.github.traex.rippleeffect:library:1.3'
compile 'com.balysv:material-ripple:1.0.2'
Gradle构建过程似乎陷入了解决依赖关系的困境:app debug compile和取消它时,我得到了这个日志错误

Error:Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.14.1-all.zip'.
我的build.gradle(模块应用程序)是-

另外,构建gradle项目也很重要-

buildscript {
    repositories {
        maven { url 'http://repo1.maven.org/maven2' }
        jcenter { url "http://jcenter.bintray.com/" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'

    }
}
allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

dependencies {

}
把这个放在控制台里-

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not resolve com.github.traex.rippleeffect:library:1.3.
     Required by:
         IITMandi:app:unspecified
      > Could not resolve com.github.traex.rippleeffect:library:1.3.
         > Could not get resource 'https://jcenter.bintray.com/com/github/traex/rippleeffect/library/1.3/library-1.3.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/github/traex/rippleeffect/library/1.3/library-1.3.pom'.
               > Connect to 10.8.0.1:8080 [/10.8.0.1] failed: Connection timed out
      > Could not resolve com.github.traex.rippleeffect:library:1.3.
         > Could not get resource 'https://jitpack.io/com/github/traex/rippleeffect/library/1.3/library-1.3.pom'.
            > Could not GET 'https://jitpack.io/com/github/traex/rippleeffect/library/1.3/library-1.3.pom'.
               > Connect to 10.8.0.1:8080 [/10.8.0.1] failed: Connection timed out
我从设置中删除了代理,但仍然存在代理导致此错误,如何更正此错误


[已解决]从gradle.properties中删除代理的问题已解决。请在构建中尝试此操作。gradle(项目级)更改以下内容

repositories {
        maven { url 'http://repo1.maven.org/maven2' }
        jcenter { url "http://jcenter.bintray.com/" }
        maven{ url "https://github.com/omadahealth/omada-nexus/raw/master/release" }
    }

您可以在

上找到更多信息。您是否在防火墙或代理后面阻止您访问依赖项?@Henry请查看更新的问题
repositories {
        maven { url 'http://repo1.maven.org/maven2' }
        jcenter { url "http://jcenter.bintray.com/" }
        maven{ url "https://github.com/omadahealth/omada-nexus/raw/master/release" }
    }