Search code examples
androidandroid-productflavorsgoogle-play-services

No matching client found for package name processAppDebugGoogleServices


I have tried almost every related solution present on Stack Overflow. But the problem is still unsolved.

Error: Execution failed for task ':App:processAppDebugGoogleServices'.
> No matching client found for package name 'com.example.application'

Setting.gradle:

include ':App'

Here is the manifest code:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.example.application"
    android:versionCode="17"
    android:versionName="1.17">

Here are the application level Gradle dependencies:

classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:2.0.0-alpha3'

Problem: flavor1, that is the application, is generating the error whereas application_rtl is working fine.


Solution

  • There might be some issue with the build file or project configuration.

    The problem is solved now, maybe because I have updated from Android Studio 1.5.1 to Android Studio 2.0.

    Here are some other changes for application level Gradle dependencies:

    classpath 'com.android.tools.build:gradle:2.0.0'
    classpath 'com.google.gms:google-services:2.0.0-alpha3'