No matching client found for package name 'com.example.myapp '
Asked Answered
S

3

7

This is a part of my google-services.json:

  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:870942488540:android:61cde8f21dabd0d2844119",
        "android_client_info": {
          "package_name": "com.firebase.uidemo"
        }
      },

and build output shows: Execution failed for task ':app:processDebugGoogleServices'.

No matching client found for package name 'com.firebase.uidemo'

how could I fix the problem? Hope someone could tell me, appreciate your help!

Sculpin answered 27/2, 2022 at 2:18 Comment(0)
J
2

See your package name on your google-services.json file and inside the client change the package as com.example.myapp

Jankey answered 2/1, 2023 at 8:13 Comment(2)
@rahan why should it be changed? if it is already defined everywhere including firebase console, json file, build.gradle and manifest file. Moreover, package IDs like com.example.... are not supported by Play Store.Hieronymus
It happens when we use another project JSON file for another project. As a result the package name does not match. We need to edit the package name then.Jankey
B
0

1.Change the package_name in json file to com.example.myapp

Baird answered 27/2, 2022 at 3:38 Comment(1)
why should it be changed? if it is already defined everywhere including firebase console, json file, build.gradle and manifest file. Moreover, package IDs like com.example.... are not supported by Play Store.Hieronymus
I
0

If the issue still persists after changing the package_name to "com.example.myapp" have a look at this post: Stackoverflow Post.

The post also explains why the issue might happen.

Indoors answered 29/8, 2024 at 19:58 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.