title: Firebase API initialization failure.java.lang.reflect.InvocationTargetException
body: <p>I have integrated the FCM Database in my Android project. I used it for chat application. Now I need to implement the cloud message(Push notification) using FireBase. After I implement the FCM, I got an error- </p>
  
  <blockquote>
    <p><strong>Firebase API initialization failure. java.lang.reflect.InvocationTargetException</strong></p>
  </blockquote>
  
  <p>I am sending the gradle script please have a look.</p>
  
  <p>Module :app</p>
  
  <pre><code>apply plugin: 'com.android.application'
  android {
  compileSdkVersion 25
  buildToolsVersion "25.0.2"
  defaultConfig {
      applicationId "com.example.swatin.groupchatapplication"
      minSdkVersion 16
      targetSdkVersion 25
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
               }
             }
   }
   repositories {
   mavenCentral()
    maven { url 'https://maven.google.com' }
   }
  
  dependencies {
  compile fileTree(include: ['*.jar'], dir: 'libs')
  androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
      exclude group: 'com.android.support', module: 'support-annotations'
  })
  compile project(':libbambuser-0.9.12')
  compile 'com.basgeekball:awesome-validation:1.3'
  compile 'com.android.support:recyclerview-v7:25.3.1'
  compile 'com.android.support:cardview-v7:25.1.0'
  compile 'com.razorpay:checkout:1.4.1'
  compile 'com.android.support:appcompat-v7:25.3.1'
  compile 'com.android.support.constraint:constraint-layout:1.0.2'
  compile 'com.google.firebase:firebase-core:10.0.1'
  compile 'com.google.firebase:firebase-messaging:10.0.1'
  compile 'com.google.firebase:firebase-auth:10.0.1'
  compile 'com.google.firebase:firebase-database:10.0.1'
  compile 'com.firebaseui:firebase-ui:2.0.1'
  compile 'com.squareup.okhttp:okhttp:2.0.0'
  compile 'com.squareup.okhttp3:okhttp:3.7.0'
  compile 'com.squareup.picasso:picasso:2.5.2'
  compile 'com.github.bumptech.glide:glide:4.3.1'
  compile 'com.android.support:support-v4:25.3.1'
  compile 'com.android.volley:volley:1.0.0'
  compile 'com.android.volley:volley:1.1.0-rc1'
  compile 'de.hdodenhof:circleimageview:2.1.0'
  compile 'com.paypal.sdk:paypal-android-sdk:2.14.2'
  
  testCompile 'junit:junit:4.12'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.3.1'
  } 
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>build.gradle (Project: ProjectName)</p>
  
  <pre><code>buildscript {
  repositories {
      jcenter()
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:2.3.3'
  
      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
      classpath 'com.google.gms:google-services:3.0.0'
  }
  }
  
  allprojects {
  repositories {
      jcenter()
  
  }
  }
  
  task clean(type: Delete) {
  delete rootProject.buildDir
  }
  </code></pre>