<legend id='kZzzP'><style id='kZzzP'><dir id='kZzzP'><q id='kZzzP'></q></dir></style></legend>
    1. <tfoot id='kZzzP'></tfoot>

      • <bdo id='kZzzP'></bdo><ul id='kZzzP'></ul>

      <small id='kZzzP'></small><noframes id='kZzzP'>

      1. <i id='kZzzP'><tr id='kZzzP'><dt id='kZzzP'><q id='kZzzP'><span id='kZzzP'><b id='kZzzP'><form id='kZzzP'><ins id='kZzzP'></ins><ul id='kZzzP'></ul><sub id='kZzzP'></sub></form><legend id='kZzzP'></legend><bdo id='kZzzP'><pre id='kZzzP'><center id='kZzzP'></center></pre></bdo></b><th id='kZzzP'></th></span></q></dt></tr></i><div id='kZzzP'><tfoot id='kZzzP'></tfoot><dl id='kZzzP'><fieldset id='kZzzP'></fieldset></dl></div>

        找不到 com.google.gms:google-services:4.0.1

        时间:2023-07-30

            <small id='kEkAS'></small><noframes id='kEkAS'>

                <tbody id='kEkAS'></tbody>
                  <bdo id='kEkAS'></bdo><ul id='kEkAS'></ul>
                  <legend id='kEkAS'><style id='kEkAS'><dir id='kEkAS'><q id='kEkAS'></q></dir></style></legend>
                  <tfoot id='kEkAS'></tfoot>
                  <i id='kEkAS'><tr id='kEkAS'><dt id='kEkAS'><q id='kEkAS'><span id='kEkAS'><b id='kEkAS'><form id='kEkAS'><ins id='kEkAS'></ins><ul id='kEkAS'></ul><sub id='kEkAS'></sub></form><legend id='kEkAS'></legend><bdo id='kEkAS'><pre id='kEkAS'><center id='kEkAS'></center></pre></bdo></b><th id='kEkAS'></th></span></q></dt></tr></i><div id='kEkAS'><tfoot id='kEkAS'></tfoot><dl id='kEkAS'><fieldset id='kEkAS'></fieldset></dl></div>
                • 本文介绍了找不到 com.google.gms:google-services:4.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  您好,我在 android 中启动了一个新项目,并按照谷歌文档中的说明导入了 firebase.Android studio 3.0.1 中的一切都很完美.现在我将我的 Android 工作室更新到 3.2.1.现在重建相同的代码并得到错误

                  Hi i started a new project in android and imported firebase as told in google docs. Everything was perfect in Android studio 3.0.1. Now i update my Android studio to 3.2.1. Now the same code is rebuild and got error that

                  找不到 com.google.gms:google-services:4.0.1

                  Could not find com.google.gms:google-services:4.0.1

                  日志是:

                  Could not find com.google.gms:google-services:4.0.1.
                  Searched in the following locations:
                      file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
                      file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
                      https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
                      https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
                      https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
                      https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
                  Required by:
                      project :
                  

                  我的项目级别 Gradle 是:

                  My Project Level Gradle is:

                  buildscript {
                  
                      repositories {
                          jcenter()
                          google()
                      }
                      dependencies {
                          classpath 'com.android.tools.build:gradle:3.2.1'
                          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()
                          google()
                      }
                  }
                  
                  task clean(type: Delete) {
                      delete rootProject.buildDir
                  }
                  

                  应用级 Gradle 是:

                  App level Gradle is:

                  apply plugin: 'com.android.application'
                  
                  android {
                      compileSdkVersion 27
                      defaultConfig {
                          applicationId "com.arafa.sms"
                          minSdkVersion 21
                          targetSdkVersion 27
                          versionCode 1
                          versionName "1.0"
                          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
                      }
                      buildTypes {
                          release {
                              minifyEnabled false
                              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                          }
                      }
                  }
                  dependencies {
                      implementation fileTree(dir: 'libs', include: ['*.jar'])
                      implementation 'com.android.support:appcompat-v7:27.1.0'
                      implementation 'com.android.support:support-v4:27.1.0'
                      implementation 'com.android.support:animated-vector-drawable:27.1.0'
                      implementation 'com.android.support:support-media-compat:27.1.0'
                      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
                      implementation 'com.google.code.gson:gson:2.6.2'
                      implementation 'com.squareup.okhttp3:okhttp:3.3.1'
                      implementation 'com.google.firebase:firebase-core:16.0.1'
                  }
                  apply plugin: 'com.google.gms.google-services'
                  

                  这里有什么问题!请帮帮我!

                  What is the issue here! Please help me out!

                  推荐答案

                  我也有同样的问题,好像 Google repo 缺少这个依赖.我检查了 repository 并且 gms 文件夹不包含任何已发布的版本.

                  I have the same problem, it seems like Google repo is missing this dependency. I checked the repository and gms folder does not contain any published versions.

                  因此,作为快速修复,我添加了另一个存储库,它拥有它:

                  So as a quick fix I added another repository, that has it:

                  repositories {
                      maven { url 'https://dl.bintray.com/android/android-tools' }
                  }
                  

                  因为这只是一个临时解决方案,我认为它是一种解决方法,所以我能够继续开发.稍后当 Google 存储库将包含依赖关系或我们知道他们将其移动到何处时,我将删除此依赖关系.

                  Since this is only a temporary solution and I consider it as a workaround so I am able to continue developing. I will remove this depencency later when Google repository will contain the depency or we know where they moved it.

                  这篇关于找不到 com.google.gms:google-services:4.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:具有高优先级的 Firebase 消息不会从 Doze android 6+ 唤醒设备 下一篇:如何检查发送到 Android 应用程序的 Firebase 消息的传递状态?

                  相关文章

                • <legend id='RX6kt'><style id='RX6kt'><dir id='RX6kt'><q id='RX6kt'></q></dir></style></legend>

                    <i id='RX6kt'><tr id='RX6kt'><dt id='RX6kt'><q id='RX6kt'><span id='RX6kt'><b id='RX6kt'><form id='RX6kt'><ins id='RX6kt'></ins><ul id='RX6kt'></ul><sub id='RX6kt'></sub></form><legend id='RX6kt'></legend><bdo id='RX6kt'><pre id='RX6kt'><center id='RX6kt'></center></pre></bdo></b><th id='RX6kt'></th></span></q></dt></tr></i><div id='RX6kt'><tfoot id='RX6kt'></tfoot><dl id='RX6kt'><fieldset id='RX6kt'></fieldset></dl></div>

                    <tfoot id='RX6kt'></tfoot>

                      <small id='RX6kt'></small><noframes id='RX6kt'>

                      • <bdo id='RX6kt'></bdo><ul id='RX6kt'></ul>