I try to add FCM to my app in order to send push notifications. But I had a problem.
I do everything according to Google tutorial
add to the project build.gradle:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0-alpha05'
classpath 'com.google.gms:google-services:3.1.1'
}
}
add to the app build.gradle
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'
but after adding
compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.firebase:firebase-messaging:11.8.0'
and sync the project, I have received the build error -
Default Activity not found
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.)
I'm developing instant app so the project in modulated (app, instantapp, base, feature, etc.).
Does anybody know why that is happening?