/ / rippleeffectライブラリの追加時にgradleディストリビューション2.14.1を使用してビルドgradleを実行できない-android、android-gradle、build.gradle

rippleeffectライブラリの追加時にgradleディストリビューション2.14.1を使用してビルドgradleを実行できない-android、android-gradle、build.gradle

プロジェクトは正常に機能していましたが、その後、これら2つのいずれかを追加してリップル効果ライブラリを使用してみました-

compile "com.github.traex.rippleeffect:library:1.3"
compile "com.balysv:material-ripple:1.0.2"

Gradleのビルドプロセスは依存関係の解決に固まっているようです:アプリのデバッグコンパイルとキャンセル時に、このログエラーが発生します

Error:Could not run build action using Gradle distribution "https://services.gradle.org/distributions/gradle-2.14.1-all.zip".

私のbuild.gradle(モジュールアプリ)は-

apply plugin: "com.android.application"

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.priyanshu.iitmandi"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
}

dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
androidTestCompile("com.android.support.test.espresso:espresso-core:2.2.2", {
exclude group: "com.android.support", module: "support-annotations"
})
compile "com.android.support:appcompat-v7:25.3.1"
//    compile "com.balysv:material-ripple:1.0.2"
compile "com.github.traex.rippleeffect:library:1.3"
testCompile "junit:junit:4.12"
compile "com.android.support:design:25.1.0"
compile "com.android.support:cardview-v7:25.1.0"

}

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からプロキシを削除する際に解決した問題

回答:

回答№1は0

build.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" }
}

あなたはもっと見つけることができます ここに