It gives me Unable to merge dex error. If i comment dependency of InApp Messaging then it works fine.
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.0'
implementation 'com.google.firebase:firebase-core:16.0.1'
classpath 'com.google.gms:google-services:4.0.0'
classpath 'com.android.tools.build:gradle:3.0.1'
Let me know if any solution available for it.
build.gradle
dependencies . May be there are some conflicts in your gradle files. – Crossgrained