Skip to content

Crash (NoSuchMethodError) with play-services-wallet:20.0.0 due to removed AutoResolveHelper.resolveTask #38

@Kevinrob

Description

@Kevinrob

When using the Datatrans SDK with the latest com.google.android.gms:play-services-wallet:20.0.0 (released on April 8, 2026), the application crashes with a java.lang.NoSuchMethodError.

Google has completely removed the deprecated AutoResolveHelper.resolveTask method in version 20.0.0 of the Wallet API, which the Datatrans SDK currently relies on.

To Reproduce
Steps to reproduce the behavior:

  1. Update Google Play Services Wallet dependency in build.gradle: implementation com.google.android.gms:play-services-wallet:20.0.0
  2. Initialize and start a payment flow using Google Pay via the Datatrans SDK.
  3. The app crashes immediately when the SDK attempts to resolve the Google Pay task.

Expected behavior
The Datatrans SDK should handle the Google Pay task resolution without crashing and should migrate away from the removed AutoResolveHelper.resolveTask method, presumably by using the newer Task API or ResolvableApiException approaches recommended by Google.

Crash Log / Stack Trace

 1 Fatal Exception: java.lang.NoSuchMethodError: No static method resolveTask(Lcom/google/android/gms/tasks/Task;Landroid/app/Activity;I)V in class Lcom/google/android/gms/wallet/AutoResolveHelper; or its super classes
 2     at ch.datatrans.payment.W4.a (SourceFile:78)
 3     at ch.datatrans.payment.J4.onChanged (SourceFile:3)
 4     at ch.datatrans.payment.Xa.a (SourceFile:2)
 5     ...
 6     at android.os.Handler.handleCallback(Handler.java:1095)
 7     at android.os.Looper.loopOnce(Looper.java:269)
 8     at android.os.Looper.loop(Looper.java:367)
 9     at android.app.ActivityThread.main(ActivityThread.java:9333)

Environment:

  • Datatrans SDK Version: 3.11.0
  • Google Play Services Wallet: 20.0.0

Additional context
For now, we have temporarily downgraded play-services-wallet to 19.5.0 as a workaround, but a fix in the SDK will be required to allow us to upgrade Google Play Services in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions