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

前端 未结 2 633
鱼传尺愫
鱼传尺愫 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.

    0 讨论(0)
  • 2021-01-17 18:12

    It just means that a constructor for AbstractGoogleJsonClient with a particular argument list wasn't available.

    Check your super() calls for your subclass(es) of AbstractGoogleJsonClient and make sure you don't need to update the argument list to match your updated libraries.

    If that's not in your source code, then there may be a library version dependency issue with Google API client library.

    0 讨论(0)
提交回复
热议问题