Android Studio library runtime error Stub! at com.amazon.device.messaging.ADMMessageReceiver.<init>()

276 Views Asked by At

I have android-device-messaging-1.0.1.jar in the libs folder of my android library project. In my main project I am using this library project, when I am trying to run the program, I am getting the Stub error. Although I used the provided scope, the jar is included in the main application. How do i fix this am I doing anything wrong here. I am using grade 2.2 and Android Studio 1.0

my-library-project:

    apply plugin: 'com.android.library'

    dependencies {
        compile 'com.android.support:appcompat-v7:20.0.+'
        provided files('libs/amazon-device-messaging-1.0.1.jar')
    }

This is my main application which uses the library project

my-main-application:
apply plugin: 'android'

dependencies {
            compile project(':my-library-project')
        }
0

There are 0 best solutions below