Make sure you've added the following to your gradle.properties
file:
android.useAndroidX=trueandroid.enableJetifier=true
The Chat SDK uses custom attributes so you need to make sure that your app inherits from the Chat SDK theme.
<style name="AppTheme" parent="ChatSDKTheme">
Project-level build.gradle
buildscript {dependencies {classpath "com.google.gms:google-services:4.3.3"...}...}allprojects {repositories {google()jcenter()maven { url "https://jitpack.io" }maven { url "http://dl.bintray.com/chat-sdk/chat-sdk-android" }}}
App-level build.gradle
Enable multi-dex, Java 8 and the Google Services plugin:
apply plugin: 'com.google.gms.google-services'android {defaultConfig {multiDexEnable****d = true...}compileOptions {sourceCompatibility JavaVersion.VERSION_1_8targetCompatibility JavaVersion.VERSION_1_8}}
Then add the dependencies. Replace the [latest-version]
with the version in the badge:
Choose one of the following backends to use:
Firebase
implementation "sdk.chat:firebase-app:[latest-version]"
FireStream (experimental)
implementation "sdk.chat:firestream-app:[latest-version]"
XMPP (experimental)
implementation "sdk.chat:xmpp-app:[latest-version]"