ADM Sdk Runtime error after integration target is android14 device

Followed this link for Android ADM setup - Overview of Amazon Device Messaging | Amazon Device Messaging

Error getting : —> Caused by: java.lang.RuntimeException: Stub! You are bundling a stubbed jar in the apk! Please move it to the classpath instead.

Hi Atul,

Thanks for posting! The error you are seeing is most likely caused by the way you added the ADM library to your project. As the error suggests, you are trying to bundle it within the APK as you build it, but you should simply reference the library instead. Please delete the .jar file from your project, then precisely follow the steps outlined below to add it correctly:

That should get rid of the error and let you build your project. Also, If you are integrating both Firebase Cloud Messaging (FCM) and ADM, consider using the new A3L Messaging SDK.