Skip to content Skip to sidebar Skip to footer

Java.lang.nosuchmethoderror When Trying To Use Madrill In Android App

I want to send information from Android app and use Madrill service. I tryed to send something on my email by taking the example code from their repository on GitHub. But i get the

Solution 1:

Try to define the dependency directly in gradle. This way it will fetch the correct dependencies:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile'com.android.support:appcompat-v7:22.2.0'compile'com.mandrillapp.wrapper.lutung:lutung:0.0.5'
}

Make sure there is not any duplicate file in the libs directory (httpcore, gson, lutung, etc)

Post a Comment for "Java.lang.nosuchmethoderror When Trying To Use Madrill In Android App"