How to solve GradleException: No matching client found for package name.

This error happens when you have changed the name of your package.

In my case , i obtain this error too :
Execution failed for task ‘:app:processDebugGoogleServices

You need to edit your file google-services.json , normally under the root of your project

change the name of the package inside this part of code :
{
« client_info »: {
« mobilesdk_app_id »: « 1:956077617501:android:fca168e8bb2917dc »,
« android_client_info »: {
« package_name »: « com.mynewpackage.xxx »
}
},

Clean and rebuild your project

Laisser un commentaire