Android Studio Gradle: Error:Execution failed for task ':app:processDebugGoogleServices'. > No matching client found for package

后端 未结 25 1491
清酒与你
清酒与你 2020-12-04 11:53

I am trying to upgrade my google play services dependencies to 8.4.0 by following the example Google gives here, but I am getting the following error (\'com.example.examplea

25条回答
  •  伪装坚强ぢ
    2020-12-04 12:26

    This happened to me when my package name wasn't represented in the google-services.json file I downloaded. Open your google-services.json file and make sure there is a client_info object that has a package name that corresponds to your manifests package name.

    In googleservices.json:

    "client": [
      {
        "client_info": {
        "mobilesdk_app_id": "my-app-id",
        "android_client_info": {
          "package_name": "com.me.android.test.myapp"
      }
    

    and in your manifest:

    
    

    You may need to recreate a new google-services.json for your project, which you can create here: https://developers.google.com/mobile/add?platform=android&cntapi=gcm

提交回复
热议问题