Ошибка синхронизации Gradle: не удалось найти com.google.http-client:google-http-client-parent:1.24.1. Искали в следующих местах:

Я пытаюсь создать проект с помощью Gradle 3.1.3, поэтому я получаю эту ошибку несколько минут назад, у меня нет новых зависимостей или библиотек, а версия моей Android Studio — 3.1.3.

Ошибка синхронизации Gradle

Ошибка синхронизации:

Не удалось найти com.google.http-client:google-http-client-parent:1.24.1. Искал в следующих местах:

Журнал:

file:/D:/Android-SDK/extras/m2repository/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.pom
    file:/D:/Android-SDK/extras/m2repository/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.jar
    file:/D:/Android-SDK/extras/google/m2repository/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.pom
    file:/D:/Android-SDK/extras/google/m2repository/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.jar
    file:/D:/Android-SDK/extras/android/m2repository/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.pom
    file:/D:/Android-SDK/extras/android/m2repository/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.jar
    https://dl.google.com/dl/android/maven2/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.pom
    https://dl.google.com/dl/android/maven2/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.jar
    https://jcenter.bintray.com/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.pom
    https://jcenter.bintray.com/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.jar
    https://maven.google.com/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.pom
    https://maven.google.com/com/google/http-client/google-http-client-parent/1.24.1/google-http-client-parent-1.24.1.jar

build.gradle-проект

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    buildscript {
        repositories {
            google()
            jcenter()
            maven { url 'https://maven.google.com'  }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.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.3.0'
        }
    }
    allprojects {
        repositories {
            google()
            jcenter()
            maven { url 'https://maven.google.com' }
        }
    }
    task clean(type: Delete) {
        delete rootProject.buildDir
    }

build.gradle-модуль

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.credibleecs.qeran"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        useLibrary 'org.apache.http.legacy'
        vectorDrawables.useSupportLibrary = true

        lintOptions
                {
                    checkReleaseBuilds false
                    // Or, if you prefer, you can continue to check for errors in release builds,
                    // but continue the build even when errors are found:
                    abortOnError false
                }
    }
    buildTypes {
        debug {}
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.google.firebase:firebase-messaging:15.0.2'
    //noinspection GradleCompatible
    implementation 'com.android.support:support-v4:26.1.0'
    implementation 'com.android.support:support-vector-drawable:26.1.0'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support:percent:26.1.0'
    implementation 'com.android.support:multidex:1.0.1'
    implementation 'com.android.support:exifinterface:26.1.0'
    implementation 'com.google.api-client:google-api-client-gson:+'
    implementation 'com.android.volley:volley:1.0.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.android.volley:volley:1.0.0'
    implementation 'com.firebase:firebase-client-android:2.5.2+'
    implementation 'com.google.android.gms:play-services-auth:15.0.0'
    implementation 'com.google.firebase:firebase-auth:15.0.0'
    implementation 'com.google.firebase:firebase-core:15.0.2'
    implementation 'com.google.firebase:firebase-database:15.0.0'
    implementation 'com.google.firebase:firebase-storage:15.0.0'
    testImplementation 'junit:junit:4.12'
    implementation project(':paytabs-android-SDK-v2.5')
    implementation 'io.card:android-sdk:5.3.0'
}
apply plugin: 'com.google.gms.google-services'

person Credible ECS    schedule 01.08.2018    source источник
comment
Можете ли вы поделиться своим сообщением об ошибке в текстовом виде, а не в виде изображения?   -  person Nico Haase    schedule 01.08.2018
comment
Пожалуйста, добавьте такую ​​​​соответствующую информацию в вопрос, а не в раздел комментариев.   -  person Nico Haase    schedule 01.08.2018
comment
Извините за краткую информацию, которая сейчас отредактирована. На самом деле я новичок в разработке Android и использовании StackOverflow! Спасибо за ваш ответ @NicoHaase   -  person Credible ECS    schedule 01.08.2018
comment
Проверьте трассировку стека исключений и укажите, для какой банки требуется google-http-client-parent:1.24.1, и попробуйте использовать более старую и стабильную версию банки.   -  person Malleswari    schedule 01.08.2018
comment
Я добавил зависимость 'com.google.http-client:google-http-client-parent:1.23.0' в соответствии с этим ссылка и добавлено 'com.google.http-client:google-http-client:1.23.0' согласно < href="https://mvnrepository.com/artifact/com.google.api-client/google-api-client/1.23.0" rel="nofollow noreferrer">ссылка и проект Did Clean, Недействителен и перезапущен, но по-прежнему отображается тот же журнал ошибок, не удалось найти com.google.http-client:google-http-client-parent:1.24.1. @Маллесвари   -  person Credible ECS    schedule 01.08.2018
comment
Проблема решена Я понизил версию google-api-client-gson до версии 1.23.0 'com.google.api-client:google-api-client-gson:1.23.0' Спасибо! @Маллесвари   -  person Credible ECS    schedule 01.08.2018


Ответы (1)


Проблема решена Я понизил версию google-api-client-gson до версии 1.23.0 'com.google.api-client:google-api-client-gson:1.23.0' Спасибо!

person Credible ECS    schedule 10.08.2018