Android Studio runtime error Stub! at com.amazon.device.messaging.ADMMessageReceiver.<init>()
amazon-device-messaging, android-studio, gradle, kindle
Solution
I also ran into this issue. When adding the Amazon Device Messaging jar as a library, Android Studio automatically generated
dependencies {
compile files('libs/amazon-device-messaging-1.0.1.jar')
}
I just needed to switch that to
dependencies {
provided files('libs/amazon-device-messaging-1.0.1.jar')
}
That did the trick for me. I'd up-vote your answer, @Clu, but I don't have a high enough reputation.
Problem
When I build the Amazon (Kindle) flavor of my Android app I run into this Runtime error: ``` Caused by: java.lang.RuntimeException: Stub! at com.amazon.device.messaging.ADMMessageReceiver.<init>() ``` 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?