How to fix error : Task :app:processDebugGoogleServices FAILED Execution failed for task ':app:processDebugGoogleServices'. > No matching client found for package name 'com.example.appname'

PROBLEM:

Task :app:processDebugGoogleServices FAILED Execution failed for task ':app:processDebugGoogleServices'. > No matching client found for package name 'com.example.appname' 

Solution:

In my case:

Google Services JSON file:

Step: 1 => Go to https://console.firebase.google.com/ 

Create New Project / Choose existing project.

Click on the Android icon to add a new app to your Firebase project.

Enter your Android app's package name.

Also Enter App Name (Nick Name)

Click Register Button.

Now, google-services.json file is ready for download.

Step: 2 => Download the google-services.json file from the Google Developer Console

Step: 3 => Place it in the app directory of your Android project


Comments

Popular posts from this blog

Problems To Upgrade Android Gradle Plugin from 4.1.3 to 8.1.2 and solutions

How to Add Animation to Android App in JAVA

Get Android App Version No and Display in a Text Field