Skip to main content

Problem

Native in-app messages fail to load GIFs without the Glide dependency on Android Native or hybrid frameworks such as Flutter or React Native.

Explanation

  • The in-app module relies entirely on the Glide image library to load images and GIFs included in in-app messages.
  • Displaying an in-app message is not completed by calling this method alone:
MoEInAppHelper.getInstance().showInApp(context)
  • Invoking this method without the Glide dependency causes the following error:
Library support not found: Image and gif require Glide library.

Solution

To ensure the in-app module displays images and GIFs, add the Glide library to the app-level build.gradle file:
build.gradle (:app)
dependencies {
  implementation 'com.github.bumptech.glide:glide:4.16.0'
}
After adding the dependency, sync your Gradle files and rebuild the app. Glide will be included, and in-app messages with images and GIFs will display correctly.