paytm整数发布版本崩溃

时间:2018-11-26 11:20:18

标签: android android-studio paytm

在集成Paytm付款sdk之后,调试版本可以正常工作,但是从Paytm获得响应时发布版本崩溃。

if minifyEnabled false means release build working fine, but must need minifyEnabled is true. 
minifyEnabled true means com.pay.project.Paytm.PaytmWebview.a(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:104)

错误日志:

    E/AndroidRuntime: FATAL EXCEPTION: main Process: com.pay.project.android.test, PID: 23149 java.lang.NoSuchMethodError: 
    No static method wrap(Ljava/lang/Object;)Ljava/lang/Object; in class Lorg/b/c;
         or its super classes (declaration of 'org.b.c' appears in 
/data/app/com.pay.project.android.test-1/base.apk) at com.pay.project.Paytm.PaytmWebview.a(Unknown Source) `at android.os.Handler.handleCallback(Handler.java:822)`at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5774)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:681)

1 个答案:

答案 0 :(得分:0)

paytm gradel文件更改为paytm的先前版本,现在可以正常工作了。