Android应用程序未成功构建,正在获取;“同步失败”;

Android应用程序未成功构建,正在获取;“同步失败”;,android,firebase,android-gradle-plugin,firebase-authentication,Android,Firebase,Android Gradle Plugin,Firebase Authentication,得到这样的错误 Could not find firebase-iid-interop.aar (com.google.firebase:firebase-iid-interop:16.0.0). Searched in the following locations: https://jcenter.bintray.com/com/google/firebase/firebase-iid-interop/16.0.0/firebase-ii

得到这样的错误

         Could not find firebase-iid-interop.aar (com.google.firebase:firebase-iid-interop:16.0.0).
         Searched in the following locations:
         https://jcenter.bintray.com/com/google/firebase/firebase-iid-interop/16.0.0/firebase-iid-interop-16.0.0.aar
获取API错误,如:

        {
          "errors" : [ {
            "status" : 404,
            "message" : "Could not find resource"
          } ]
        }
这是我的应用程序gradle文件。应用程序使用了firebase-id。我根据过程更改了包名,但获取同步失败

在Gradle中,我加入了“implementation'com.google.firebase:firebase-core:16.0.1'”,但不起作用

            apply plugin: 'com.android.application'

            android {
                compileSdkVersion 25
                buildToolsVersion '28.0.2'

                defaultConfig {
                    applicationId "com.my.application"
                    minSdkVersion 15
                    targetSdkVersion 25
                    versionCode 14
                    versionName "2.7"
                    vectorDrawables.useSupportLibrary = true

                }

                buildTypes {
                    release {
                        minifyEnabled false


                    }
                }
            }

            dependencies {
                implementation fileTree(include: ['*.jar'], dir: 'libs')


                implementation fileTree(dir: 'libs', include: ['*.jar'])
                testImplementation 'junit:junit:4.12'
                implementation 'com.google.firebase:firebase-core:16.0.1'
                implementation 'com.google.android.gms:play-services-base:9.2.1'
                implementation 'com.google.android.gms:play-services-basement:9.2.1'
                implementation 'com.google.android.gms:play-services-safetynet:9.2.1'
                implementation 'com.google.android.gms:play-services-tasks:9.2.1'


                //  implementation 'com.google.android.gms:play-services-safetynet:11.0.1'

                // ButterKnife
                implementation 'com.jakewharton:butterknife:8.8
                annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

                // Volley
                implementation 'com.android.volley:volley:1.1.0'

                implementation 'com.github.aakira:expandable-layout:1.4.2@aar'
                implementation 'com.android.support:appcompat-v7:25.3.1'
                implementation 'com.android.support:design:25.3.1'
                implementation 'com.android.support:cardview-v7:25.3.1'
                implementation 'com.android.support:recyclerview-v7:25.3.1'
                implementation 'com.android.support:support-v4:25.3.1'
                implementation 'com.android.support:support-vector-drawable:25.3.1'
                implementation 'com.google.android.gms:play-services-maps:9.2.1'
                implementation 'com.google.android.gms:play-services-places:9.2.1'
                implementation 'com.google.code.gson:gson:2.8.1'
                implementation 'com.balysv:material-ripple:1.0.2'
                implementation 'com.github.bumptech.glide:glide:3.7.0'
                implementation 'com.wdullaer:materialdatetimepicker:3.2.0'
                implementation 'com.mikhaellopez:circularimageview:3.0.2'
                implementation 'com.github.pchmn:MaterialChipsInput:1.0.5'
                implementation 'com.hootsuite.android:nachos:1.1.1'
                implementation 'com.android.support.constraint:constraint-layout:1.0.2'
                implementation 'com.google.firebase:firebase-messaging:9.2.1'
                implementation 'com.squareup.retrofit2:retrofit:2.0.2'
                implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
                implementation 'com.squareup.picasso:picasso:2.3.2'
                implementation 'com.nineoldandroids:library:2.4.0'
                implementation 'com.daimajia.slider:library:1.1.5@aar'
                implementation 'com.felipecsl:gifimageview:2.1.0'
                implementation 'commons-io:commons-io:2.4'
                implementation files('libs/YouTubeAndroidPlayerApi.jar')
                implementation 'com.paytm:pgplussdk:1.1.5'
                implementation 'com.sunfusheng:marqueeview:1.2.0'

                // library for user interface

                implementation 'com.squareup.okhttp3:logging-interceptor:3.3.1'

                // firebase ads library
            //    implementation 'com.google.firebase:firebase-ads:9.2.1'

                implementation 'com.android.support:multidex:1.0.3'


            }
            apply plugin: 'com.google.gms.google-services'
带有依赖项的Gradle文件使用了“classpath'com.google.gms:google services:4.0.1”


例如,下载最新的Gradle软件包发行版(Gradle-2.11-all.zip)。 在Android Studio中加载您的项目,然后转到文件->设置->渐变。单击UseLocalGradleDistribution并将其指向解压最新Gradle项目的文件夹。
重新启动项目。

gradle生成失败时显示什么错误?解决失败:firebase iid互操作打开文件解决失败:播放服务库打开文件单击设置-->生成、执行、部署-->编译器-->取消选中“按需配置”然后清理并重建您的项目。清理并生成后出现错误,如找不到firebase-iid-interop.aar(com.google.firebase:firebase iid interop:16.0.0)。在以下位置搜索:要做什么?请帮帮我。
                // Top-level build file where you can add configuration options common to all sub-projects/modules.

                buildscript {
                    repositories {
                        jcenter()
                        mavenCentral()
                        google()
                    }
                    dependencies {
                        classpath 'com.android.tools.build:gradle:3.2.0'
                        classpath 'com.google.gms:google-services:4.0.1'

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

                allprojects {
                    repositories {
                        jcenter()
                        mavenCentral()
                        maven { url "https://jitpack.io" }
                        google()
                    }
                }

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