title: Android Studio runtime error Stub! at com.amazon.device.messaging.ADMMessageReceiver.<init>()
body: <p>When I build the Amazon (Kindle) flavor of my Android app I run into this Runtime error:</p>
  
  <pre><code>Caused by: java.lang.RuntimeException: Stub!
  at com.amazon.device.messaging.ADMMessageReceiver.&lt;init&gt;()
  </code></pre>
  
  <p>I need the local amazon-device-messaging.jar file to compile my app, however I do not need to include it during runtime as the amazon device will have the necessary classes and methods.  How do I update my Android Studio build.gradle file to do this?</p>