Android студийная синхронизация c выпуски - PullRequest
2 голосов
/ 20 апреля 2020

ниже приведен код уровня проекта build.gradle. Я открыл его за несколько дней до того, как он начал работать, теперь его ошибка выдачи, как показано на рисунке. Я пытался обновить версию Gradle. Я отключил кэш и перезапустился, но ничто не помогло.

// Файл сборки верхнего уровня, в который можно добавить параметры конфигурации, общие для всех подпроектов / модулей.

buildscript {
repositories {
    maven {
        url "https://maven.google.com" // Google's Maven repository
    }
    jcenter { url "http://jcenter.bintray.com/"}
    google()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.6.3'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    classpath 'com.google.gms:google-services:4.3.3'
}
  }

     allprojects {
repositories {
    maven {
        url "https://maven.google.com" // Google's Maven repository
        }
        jcenter { url "http://jcenter.bintray.com/"}
         google()
       }
   }

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

buidl.gradle 9app level

    apply plugin: 'com.android.application'

android {
    signingConfigs {
        config {
            keyAlias 'xxx'
            keyPassword 'xxx'
            storeFile file('xxxx.jks')
            storePassword 'xxxx'
        }
    }
    compileSdkVersion 28
    buildToolsVersion '29.0.2'
    defaultConfig {
        applicationId "xxxx"
        minSdkVersion 18
        targetSdkVersion 28
        versionCode 13
        versionName "1.0.13"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
    }
    productFlavors {
        FREE {
            minSdkVersion 18
            applicationId 'XXXX'
            signingConfig signingConfigs.config
            targetSdkVersion 28
            testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
            versionCode 13
            versionName '1.0.13'
        }
    }

    flavorDimensions "versionCode"
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta4'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'de.codecrafters.tableview:tableview:2.5.0'
    implementation 'com.github.bumptech.glide:glide:4.9.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
    implementation 'com.github.f0ris.sweetalert:library:1.5.1'
    implementation 'com.google.firebase:firebase-core:16.0.8'
    implementation 'com.google.firebase:firebase-messaging:17.4.0'
    implementation files('libs/YouTubeAndroidPlayerApi.jar')
}

apply plugin: 'com.google.gms.google-services'

enter image description here

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