Не удалось разрешить com. android .tools.build: gradle: 3.2.1. ошибка в градле - PullRequest
2 голосов
/ 30 января 2020

Я пытаюсь скомпилировать свой проект, но я получаю эту ошибку, я пытался решить мою проблему с другими ответами, но ничего не помогло:

Не удалось разрешить com. android .tools. сборки: Gradle: 3.5.3. Не удалось получить ресурс 'https://maven.google.com/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom'. Не удалось получить 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom'. sun.security.validator.ValidatorException: сбой при создании пути PKIX: sun.security.provider.certpath.SunCertPathBuilderException: невозможно найти действительный путь сертификации к запрошенной цели

**

my Приложение Gradle выглядит следующим образом: применить плагин: 'com. android .application'

android {
    buildToolsVersion "28.0.0"
    // buildToolsVersion "29"
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.a1.makeitapp"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    allprojects {
        repositories {
            google()
            maven { url "https://jitpack.io" }
        }
    }
    dependencies {
        implementation fileTree(include: ['*.jar'], dir: 'libs')
        implementation 'com.google.android.gms:play-services-auth:16.0.0'
        implementation 'com.google.android.gms:play-services-maps:16.0.0'
        implementation 'com.android.support:appcompat-v7:28.0.0'
        implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        implementation 'com.android.support:design:28.0.0'
        testImplementation 'junit:junit:4.12'
//        androidTestImplementation 'com.android.support.test:runner:1.0.2'
//        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
        implementation 'com.github.parse-community.Parse-SDK-Android:fcm:1.18.5'
        // implementation 'com.android.support:design:REPLACE-WITH-APPCOMPAT-VERSION'

    }
}

Мой Gradle:

buildscript {

    repositories {
        google()
        jcenter()
        mavenCentral()
        maven { url 'https://maven.google.com' }
    }
    dependencies {
        //classpath 'com.android.tools.build:gradle:3.2.0'
        classpath 'com.android.tools.build:gradle:3.5.3'
        //classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven { url 'https://maven.google.com' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Может кто-нибудь помочь решить проблему ?? спасибо !!

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...