Are you getting ‘No matching Client Found for Package Name’ error in Android java studio? Do you want to fix it perfectly? Don’t worry we are happy to help you in the following steps.
Contents
How the ‘No matching Client Found for Package Name’ error looks like:
The following error keywords helps you to identify this error
Error:Execution failed for task No matching client found
Exactly what my error is as follow.
Error:Execution failed for task ‘:app:processAllcategoriesDebugfreeGoogleServices’. No matching client found for package name ‘com.my.app.package.name.debug’
Reason for this Error:
The main reason is for this error is not having exact match of ‘Package ID’ now. Means your package ID which you are using currently differs from earlier usage.
Which have admob integration and some registration are already seems in google-services.json file.
Steps to fix ‘No matching Client Found for Package Name’:
Step 1: Go to Project Files from window
Step 2: Find for google-services.json mostly under src folder.
Step 3: open google-services.json and do the following changes.
You can see the blue strickout picture in the above space. In the same way you have to remove your package name and write app package name there.
Otherwise you can say that app path of that package (com.helloapp.android).
Sometimes you may receive the same error in the following format.
org.gradle.api.GradleException: No matching client found for package name
This is nothing but the same reason of package name ID mismatch or the not having correct path location.
Note: Make sure that the package name in your build.gradle file matches the name of the package you entered when creating the google-services.json file. If you are not sure, run it again and get a new JSON file.
Hope you done it right now.
Final words:
Once done the above steps clear cache and refresh the project. Now your error get fixed. You can check logs additionally.
Hope you did it now. If you have any doubts post it in below command box.