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

后端 未结 25 1326
清酒与你
清酒与你 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:16

    check that, in your "google-services.json" file your package_name is available or not

    0 讨论(0)
  • 2020-12-04 12:17

    Happened to me when switching flavors.

    Now you can also use the google-services.json with different flavors.

    See https://stackoverflow.com/a/34364376/570168

    0 讨论(0)
  • 2020-12-04 12:17

    If this happened to you after renaming your application package name, then you need to update the following:

    1)google-services.json file in your application by looking up in the file for "package_name" attribute and update it with the new package name.

    2)Update your application client Credentials in Google Developers Console by going to the Credentials and selecting your android client key then update the package name as well with the new one.

    Hope this will help.

    0 讨论(0)
  • 2020-12-04 12:17

    i had the same problem and just easy solve it make sure the package name for package in mainfest tag inside manifest.xml file and the applicationId in application tag inside gradle app level file has the same package name

    in manifest.xml

    package="com.example.work"
    

    in gradle app level

    applicationId "com.example.work"
    

    hope it help

    0 讨论(0)
  • 2020-12-04 12:17

    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.

    Make sure the package name in your project manifest is exactly the same in google-services.json file

    thanks.

    0 讨论(0)
  • 2020-12-04 12:18

    For me, I had to check the google-services.json file and make sure "package_name" was correctly set to the package name of my android app. The auto generated services file had .backend appended to it in my case.

    0 讨论(0)
提交回复
热议问题