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

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

    I meet the problem when using Firebase, i think different package cause the problem.

    I solved by adding packeage of new app within Firebase Console, and download google-services.json again.

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

    Both times when you write the package name : 1. When you create a new project in Android Studio and 2. When you create a Configuration File

    YOU should write it with lowercase letters - after changing to lowercase it works. If you don't want to waste time just go to you .json file and replace com.myname.MyAPPlicationnamE with com.myname.myapplicationname (for every match in the json file).

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

    In my case, I just had to do

    1. Click Build
    2. Click Make Project

    It all then went fine. I still have no clue what happened.

    0 讨论(0)
  • 2020-12-04 12:22
    "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "9:99999999:android:9ccdbb6c1ae659b8",
        "android_client_info": {
          "package_name": "[packagename]"
        }
      }
    

    package_name must match what's in your manifest file. you can find the google-services.json file if you look in the example photo below.

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

    your google-services.json package name must match your build.gradle applicationId (applicationId "your package name")

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

    if you run the other type of build(for example sign apk or etc), you must select app type of build then run the projects.

    please seen the following image. for run this project we must select "app" in run configuration popup.

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