परियोजना ठीक काम कर रही थी लेकिन तब जब मैंने इन दोनों में से किसी एक को जोड़कर तरंग प्रभाव पुस्तकालय की कोशिश की -
compile "com.github.traex.rippleeffect:library:1.3"
compile "com.balysv:material-ripple:1.0.2"
ग्रेडल निर्माण प्रक्रिया निर्भरता को हल करने में अटक गई है: एप्लिकेशन डिबग संकलन और इसे रद्द करने पर, मुझे यह लॉग त्रुटि मिलती है
Error:Could not run build action using Gradle distribution "https://services.gradle.org/distributions/gradle-2.14.1-all.zip".
मेरा बिल्ड.ग्रेडल (मॉड्यूल ऐप) है -
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"
}
इसके अलावा निर्माण परियोजना है -
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 से प्रॉक्सी को हटाने पर हल की गई समस्या
उत्तर:
जवाब के लिए 0 № 1अपने 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" }
}
आप और अधिक पा सकते हैं यहाँ