How do you interpret “java.lang.NoSuchMethodError: No direct method”?

前端 未结 2 631
鱼传尺愫
鱼传尺愫 2021-01-17 17:25

We decided, perhaps naively, that we should update many of our libraries from two-year-old 1.12.0-betas to nice new versions 1.20.0. For example: we updated google-http-clie

2条回答
  •  生来不讨喜
    2021-01-17 17:59

    This issue is happened because of Proguard is applied via Proguard this class name and methods name changes that why NoSuchMethod exception is occurring.

    To resolve this error please add below line into you Proguard rules.

    -keep class com.google.** { *; }

    Hopefully this will resolve your issue.

提交回复
热议问题