. Advertisement .
..3..
. Advertisement .
..4..
I encounter the ”no matching client found for package name” error when I’m attempting to set up Google Analytics for my project. (with multiple productFlavors
and four custom buildTypes
).
When I choose the Build Variant
with the applicationId
set to com.my.app.package.name
, everything runs smoothly (the package name used when generating the google-services.json
). However, the applicationIds for my other flavors are different.
This error appears when any other build variation with a different applicationId (package name) is selected in the Build Variants Tab:
Error:Execution failed for task ':app:processAllcategoriesDebugfreeGoogleServices'.
No matching client found for package name 'com.my.app.package.name.debug'
I don’t know why this error occurs and how to solve it? Can someone help me?
Thank guys!
The cause: This error happens when a Google Services Json file that was downloaded for your project has a package name that is different from your project’s package name.
Solution: Make sure your package name in “google-services.json” file is same with your apps’s package name.