title: Push notification - Firebase Control Messaging (FCM) - could not run the app (Default Activity not found)
body: <p>I try to add FCM to my app in order to send push notifications.
  But I had a problem.</p>
  
  <p>I do everything according to <a href="https://firebase.google.com/docs/cloud-messaging/android/client" rel="nofollow noreferrer">Google tutorial</a> </p>
  
  <p>add to the <strong>project</strong> build.gradle:</p>
  
  <pre><code>buildscript {
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.1.0-alpha05'
          classpath 'com.google.gms:google-services:3.1.1'
      }
  }
  </code></pre>
  
  <p>add to the <strong>app</strong> build.gradle</p>
  
  <pre><code>dependencies {
      ...
      compile 'com.google.firebase:firebase-core:11.8.0'
      compile 'com.google.firebase:firebase-messaging:11.8.0'
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>but after adding</p>
  
  <pre><code>    compile 'com.google.firebase:firebase-core:11.8.0'
      compile 'com.google.firebase:firebase-messaging:11.8.0'
  </code></pre>
  
  <p>and sync the project, I have received the build error - </p>
  
  <blockquote>
    <p>Default Activity not found</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/YZrhl.png" rel="nofollow noreferrer">screenshot</a></p>
  
  <p>In case of removing firebase dependencies from gradle, everything is ok and the app is running correctly.
  Of course, I have updated everything (SDK, gradle version, etc.)</p>
  
  <p>I'm developing instant app so the project in modulated (app, instantapp, base, feature, etc.).</p>
  
  <p>Does anybody know why that is happening?</p>