I'm having a problem receiving callbacks from push notifications: when i'm in the production environment and with dexguard enabled.

Fatal Exception: java.lang.NoSuchMethodError: No direct method <init (Landroid/content/Context;Lcom/salesforce/marketingcloud/MarketingCloudConfig;)V in class Lcom/salesforce/marketingcloud/location/h; or its super classes (declaration of 'com.salesforce.marketingcloud.location.h' appears in /data/app/...-2Mvv..Ng2-m6i..m7A==/base.apk!classes3.dex)
       at com.salesforce.marketingcloud.location.f.a(:36)
       at com.salesforce.marketingcloud.MarketingCloudSdk.a(:215)
       at com.salesforce.marketingcloud.MarketingCloudSdk.a(:47)
       at com.salesforce.marketingcloud.MarketingCloudSdk$a.run(:38)
       at java.lang.Thread.run(Thread.java:764)
  • I updated the library to 8.0.7, without success;
  • I already added this ignore from the dexguard file to ignore the library;
-keep class com.salesforce.marketingcloud.**{ *; }

None of the procedures worked, could anyone help me?

1 Answer 1


Update the version of Google Play Service Location that you're including -- and/or make it match what is required as listed in the integration docs.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .