I am Using Firebase Cloud Messaging for Push Notification.
I followed all instructions of official site and successfully added all requirements. But I am getting a Error and not able to find any solution.
My Error is:
Error:Execution failed for task ':app:processInmemoryDebugGoogleServices'.
> No matching client found for package name 'in.voiceme.app.voiceme.inmemory'
where I added google-service.json see.
My Project structure Looking Like
I already added in dependencies:
compile 'com.google.firebase:firebase-messaging:9.4.0'
apply plugin: 'com.google.gms.google-services'
added classpath:
buildscript {
repositories {
jcenter()
}
dependencies {
*classpath 'com.android.tools.build:gradle:2.1.3'*
*classpath 'com.google.gms:google-services:3.0.0'*
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
My app based Build.Gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "in.voiceme.app.voiceme"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
inmemory {
applicationId "in.voiceme.app.voiceme.inmemory"
}
live {
applicationId "in.voiceme.app.voiceme"
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.google.firebase:firebase-messaging:9.0.0'
}
apply plugin: 'com.google.gms.google-services'
Can anyone give me solution about this Error?