payu-intrepos / Android-Custom-Browser

Custom Browser module for SDK
11 stars 9 forks source link

Custom Browser crash due to analytics library #27

Closed sarthakgandhidunzo closed 2 years ago

sarthakgandhidunzo commented 2 years ago

Fatal Exception: java.lang.NoSuchMethodError: No direct method (Landroid/content/Context;)V in class Lcom/payu/payuanalytics/analytics/factory/AnalyticsFactory; or its super classes (declaration of 'com.payu.payuanalytics.analytics.factory.AnalyticsFactory' appears in /data/app/~~jDV-fdOswpX8xpJxmkovYw==/runner.dunzo.com.dunzo_runner.debug-YkSC1V9xFH09WubtKOyg0Q==/base.apk!classes20.dex) at com.payu.custombrowser.CustomBrowser.addCustomBrowser(SourceFile:1)

SDK version: 'in.payu:payu-custom-browser:7.10.6'

shahfaizalc commented 2 years ago

hi @sarthakgandhidunzo this issue would come when older version of Analytics lib and new version both present in your external libraries.

  1. Can you please list what are other payu sdks used in your app. Please update them to the latest.
  2. Check analyitcs version in external libraries
  3. if you still face issue please let us know. our integration team will help you on this.
sarthakgandhidunzo commented 2 years ago

@shahfaizalc We are using the following SDK's

in.payu:payu-custom-browser:7.10.6 in.payu:upisdk:1.5.4 in.payu:payu-gpay:2.4.0 in.payu:payu-sdk:5.4.7

All of them are the latest SDK's. Correct me if need to upgrade any of these.

P.S: We are not using the payu analytics library in our code.

shahfaizalc commented 2 years ago

@sarthakgandhidunzo please reach us on following mail id mobile.integration@payu.in . our team will help you on solving this issue

shahfaizalc commented 2 years ago

@sarthakgandhidunzo As discussed, The issue was due to Different versions analytics library got linked from other dependencies version added.. Updating latest version of in.payu:payu-sdk & in.payu:payu-gpay resolved the problem.

@sarthakgandhidunzo thanks for reaching us.