Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError: No direct method <init> on Web3Wallet.approveSession #1060

Open
mahdit8 opened this issue Jul 31, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@mahdit8
Copy link

mahdit8 commented Jul 31, 2023

Describe the bug
When call approveSession method

Web3Wallet.approveSession(approveProposal,
    onError = { error ->
        Timber.i("ApproveSession error  $error")
        callbacks?.onFailure(error.throwable)

I'm getting this on new version:

java.lang.NoSuchMethodError: No direct method <init>(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Lcom/walletconnect/android/internal/common/model/Redirect;ILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Lcom/walletconnect/android/internal/common/model/AppMetaData; or its super classes (declaration of 'com.walletconnect.android.internal.common.model.AppMetaData' appears in /data/app/~~Cm2bqNAkP1NEVNGpRAMtkg==/com.bitcoin.walletconnect.sample-hKs-5Di61XdZ9zvXWsnxpA==/base.apk!classes12.dex)

SDK Version
Kotlin
com.walletconnect:android-core:1.19.0
com.walletconnect:web3wallet:1.12.0

To Reproduce
Steps to reproduce the behavior:

  1. Update dependencies to last
com.walletconnect:android-core:1.19.0
com.walletconnect:web3wallet:1.12.0
  1. Approve a session

Expected behavior
Not crash and handle session.

Device (please complete the following information):
Android 11

@mahdit8 mahdit8 added the bug Something isn't working label Jul 31, 2023
@mahdit8 mahdit8 changed the title NoSuchMethodError: No direct method <init> on Web3Wallet.approveSession( NoSuchMethodError: No direct method <init> on Web3Wallet.approveSession Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant