Android
Troubleshooting

This is a developers' guide for setting up a LiveLike SDK configuration for native Android apps. We will take you through the basic technical steps for configuration and show you how to send your first widgets and chat messages. We will also provide detailed samples and instructions for a complete LiveLike integration.

Logging/Debugging

The Engagement SDK gives you control over the types of logs that are printed. This can be helpful to debug unexpected behavior or for reporting a bug to support@livelike.com. The different logging levels are:

  • Verbose - Highly detailed level of logging, best used when trying to understand the working of a specific section/feature of the Engagement SDK.
  • Debug - Information that is diagnostically helpful to integrators and Engagement SDK developers.
  • Info - Information that is always useful to have, but not vital.
  • Warning - Information related to events that could potentially cause oddities, but the Engagement SDK will continue working as expected.
  • Error - An error occured that is fatal to a specific operation/component, but not the overall Engagement SDK.
  • Severe - A fatal issue occured, from which the Engagement SDK cannot recover.
  • None - No logging enabled.

The default level is None.

SDKLogger.minimumLogLevel = LogLevel.Verbose

You also have the ability to add your own listener for the logs

registerLogsHandler(object : (String) -> Unit {
            override fun invoke(text: String) {
                // Do something with the log here
            }
        })
// Not available yet, target version 0.1.1

Common Errors

If you've received the error “Failed to initialize the Engagement SDK. '[your client ID]' is not a valid client id.” , when trying to initialize the Engagement SDK, please ensure that the Client ID used in your application matches the one given in the Producer Site.

If you've received the error “[your program ID] is not a valid program ID” , please refer back to program ID instructions.

Dependency Conflicts

Try to follow the same dependency version we are using in the SDK

// App dependencies
        constraintLayoutVersion = "1.1.3"
        exoplayerVersion = "2.9.3"
        glideVersion = '4.9.0'
        gsonVersion = '2.8.5'
        lottieVersion = '2.7.0'
        mavenPluginVersion = '2.1'
        multidexVersion = '1.0.3'
        mixpanelVersion = '5.5.2'
        okhttpVersion = '3.11.0'
        pubnubVersion = '4.21.0'
        supportLibraryVersion = '28.0.0'
        sendbirdVersion = '3.0.88'
        threetenabpVersion = "1.1.2"
        lifecycleVersion = "1.1.1"

Contacting LiveLike Support

If you've been unable to solve your problem with the help of the sections above, please feel free to contact the LiveLike support team at support@livelike.com.