I get: java.lang.RuntimeException: Stub! at com.amazon.device.messaging.ADM.
(Unknown Source) when trying to construct the ADM object on a Kindle Fire HD(System version: 7.3.1_user_3140720). Any ideas what I could be missing?
Hi, I followed your instructions to add the ADM library on intellijIDEA but now I get this issue: java.lang.NoClassDefFoundError: com.myapp.services.ADMIntentService any idea why this is happening and how to fix it?
Thank you for writing to us. In intellij you have to add ADM jar as dependency and scope should be "provided".
Go to Project Structure (Ctrl+Alt+Shift+S), select "modules" from "Project Settings" in the left pane, select "Dependencies" tab from right pane. Click on "+" button, select jars or directories, then locate and select the ADM jar, change the scope of the jar as "provided". Make sure "export" check box is not checked.
Thanks for your question. That exception can occur when you have included the ADM JAR in the APK. Instead, the JAR should just be included in the compiler's classpath. Please see
https://developer.amazon.com/sdk/adm/setup.html for more information on the setup process. Thanks, Stephen