title: Unable to get provider com.google.firebase.provider.FirebaseInitProvider on Android Studio
body: <p>It crash my app were it says "Unfortunately, MyApp has stopped" and I don't have any idea how to fix this thing I really need help.</p>
  
  <p><strong>This is what i saw in logcat:</strong></p>
  
  <pre><code>04-30 06:52:50.214 21423-21423/com.parse.starter E/AndroidRuntime: FATAL EXCEPTION: main
                                                                 Process: com.parse.starter, PID: 21423
                                                                 java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/mnt/asec/com.parse.starter-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/com.parse.starter-1/lib, /vendor/lib, /system/lib]]
                                                                     at android.app.ActivityThread.installProvider(ActivityThread.java:5049)
                                                                     at android.app.ActivityThread.installContentProviders(ActivityThread.java:4620)
                                                                     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553)
                                                                     at android.app.ActivityThread.access$1500(ActivityThread.java:160)
                                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1390)
                                                                     at android.os.Handler.dispatchMessage(Handler.java:110)
                                                                     at android.os.Looper.loop(Looper.java:193)
                                                                     at android.app.ActivityThread.main(ActivityThread.java:5330)
                                                                     at java.lang.reflect.Method.invokeNative(Native Method)
                                                                     at java.lang.reflect.Method.invoke(Method.java:515)
                                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
                                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
                                                                     at dalvik.system.NativeStart.main(Native Method)
                                                                  Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/mnt/asec/com.parse.starter-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/com.parse.starter-1/lib, /vendor/lib, /system/lib]]
                                                                     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                                     at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
                                                                     at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
                                                                     at android.app.ActivityThread.installProvider(ActivityThread.java:5034)
                                                                     at android.app.ActivityThread.installContentProviders(ActivityThread.java:4620) 
                                                                     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553) 
                                                                     at android.app.ActivityThread.access$1500(ActivityThread.java:160) 
                                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1390) 
                                                                     at android.os.Handler.dispatchMessage(Handler.java:110) 
                                                                     at android.os.Looper.loop(Looper.java:193) 
                                                                     at android.app.ActivityThread.main(ActivityThread.java:5330) 
                                                                     at java.lang.reflect.Method.invokeNative(Native Method) 
                                                                     at java.lang.reflect.Method.invoke(Method.java:515) 
                                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) 
                                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) 
                                                                     at dalvik.system.NativeStart.main(Native Method) 
  </code></pre>
  
  <p><strong>And this is the build.gradle file</strong></p>
  
  <pre><code>    buildscript {
      repositories {
          mavenCentral()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.1'
      }
  }
  
  allprojects {
      repositories {
          mavenCentral()
      }
  }
  
  ext {
      compileSdkVersion = 22
      buildToolsVersion = "23.0.1"
  
      minSdkVersion = 19
      targetSdkVersion = 23
      multiDexEnabled true
  }
  </code></pre>
  
  <p><strong>The Manifest.xml</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;!--
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.parse.starter"&gt;
      &lt;application
          android:name="android.support.multidex.MultiDexApplication" &gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
  
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  
      &lt;application
          android:name=".StarterApplication"
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme"&gt;
  
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>The Source Code</strong></p>
  
  <pre><code>package com.parse.starter;
  
  import android.app.Application;
  import android.util.Log;
  
  import com.parse.Parse;
  import com.parse.ParseACL;
  import com.parse.ParseException;
  import com.parse.ParseObject;
  import com.parse.ParseUser;
  import com.parse.SaveCallback;
  
  
  public class StarterApplication extends Application {
  
    @Override
    public void onCreate() {
      super.onCreate();
  
      Parse.enableLocalDatastore(this);
  
      Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
              .applicationId("xxxxxx")
              .clientKey("xxxxxx")
              .server("xxxxx")
              .build()
      );
  
      ParseObject object = new ParseObject("ExampleObject");
      object.put("myNumber", "123");
      object.put("myString", "gerard");
  
      object.saveInBackground(new SaveCallback () {
        @Override
        public void done(ParseException ex) {
          if (ex == null) {
            Log.i("Parse Result", "Successful!");
          } else {
            Log.i("Parse Result", "Failed" + ex.toString());
          }
        }
      });
  
  
      ParseUser.enableAutomaticUser();
  
      ParseACL defaultACL = new ParseACL();
      defaultACL.setPublicReadAccess(true);
      defaultACL.setPublicWriteAccess(true);
      ParseACL.setDefaultACL(defaultACL, true);
  
    }
  }
  </code></pre>
  
  <p>Kindly help me in this case.</p>