title: Why does my app built through Bazel crash after adding Firebase dependencies as soon as it is opened?
body: <pre><code>2019-01-28 14:41:46.839 30612-30612/? E/AndroidRuntime: FATAL EXCEPTION: main
  Process: com.sensennetworks.senanpr, PID: 30612
  java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.IllegalStateException: Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle.
      at android.app.ActivityThread.installProvider(ActivityThread.java:6717)
      at android.app.ActivityThread.installContentProviders(ActivityThread.java:6215)
      at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6132)
      at android.app.ActivityThread.-wrap1(Unknown Source:0)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839)
      at android.os.Handler.dispatchMessage(Handler.java:106)
      at android.os.Looper.loop(Looper.java:197)
      at android.app.ActivityThread.main(ActivityThread.java:7018)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:837)
   Caused by: java.lang.IllegalStateException: Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle.
  </code></pre>
  
  <p>I am getting this crash as soon as I open it. Here's my WORKSPACE file,</p>
  
  <pre><code>aar_import_external(
        name = 'com_google_firebase_firebase_messaging_directboot_17_0_3',
        licenses = ['notice'], # apache
        aar_urls = ['https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-messaging-directboot/17.0.3/firebase-messaging-directboot-17.0.3.aar'],
        aar_sha256 = '',
        deps = [
          '@com_google_android_gms_play_services_basement_16_0_1//aar',
          '@com_google_android_gms_play_services_tasks_16_0_1//aar',
          '@com_google_firebase_firebase_common_16_0_3//aar',
          '@com_google_firebase_firebase_iid_17_0_4//aar',
          '@com_google_firebase_firebase_messaging_17_3_4//aar',
          '@com_google_android_gms_play_services_stats_16_0_1//aar',
          '@com_google_firebase_firebase_iid_interop_16_0_1//aar',
        ],
      )
  </code></pre>
  
  <p>I am importing the same in BUILD file.</p>