Troubleshooting Exceptions

In this article, we will provide a fix for common exceptions.

InApps

java.lang.UnsupportedOperationException: 
Library support not found: Image and gif require Glide library.

Fix - Ensure you add the glide library dependencies mentioned in this document.

 

 

InAppFileManager downloadAndSaveFiles() : java.io.FileNotFoundException: https://campaign-assets-01.moengage.com/inbound/inapp/html_inapp/campaigns/tbsa_02_uat_sit/1712731832516233_r0mai9/17127318325182123_2m2mil/#

 

Fix - HTML template is having some errors related to href links, Fix the template without any errors and you shouldn't see the above error in the logs.

 

Lifecycle-process

java.lang.NoSuchFieldError: No field Companion of type Landroidx/lifecycle/ProcessLifecycleOwner$Companion; in class Landroidx/lifecycle/ProcessLifecycleOwner; or its superclasses (declaration of 'androidx.lifecycle.ProcessLifecycleOwner' appears in /data/app/~~iQ1qllgGR8saPZQwzjFrZg==)

 

Fix - Ensure that Android core and lifecycle process libraries are compatible. You can find the right lifecycle process library version in the change log for your sdk. - (for example - React SDK changelog -  https://developers.moengage.com/hc/en-us/articles/4405077853332-Changelog)

 

 

Previous

Next

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?