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

Why it throws exception all the time whenever I tried to run WalletConnectKit.builder(context).config(this.config).build() #31

Open
rehmanali-vaival opened this issue Oct 12, 2023 · 0 comments

Comments

@rehmanali-vaival
Copy link

rehmanali-vaival commented Oct 12, 2023

Exception:
java.lang.NoSuchMethodError: No direct method (Lcom/walletconnect/android/CoreClient;)V in class Lcom/walletconnect/sign/client/Sign$Params$Init; or its super classes (declaration of 'com.walletconnect.sign.client.Sign$Params$Init' appears in /data/app/~~mSzRPvOCPJ5rc3I41d2X6w==/com.dinosoftlabs.binder-KTkbrpJ4XDWAWKDxPXoGBA==/base.apk!classes15.dex)
at dev.pinkroom.walletconnectkit.core.WalletConnectKitConfigKt.initializeCoreClient(WalletConnectKitConfig.kt:58)

Here's the code example where facing issue

val config: WalletConnectKitConfig = WalletConnectKitConfig(projectId = "Project-ID")
val walletConnectKit = WalletConnectKit.builder(context).config(this.config).build()

Getting exception in the second line of code when trying to implement .build()

I have an existing android app which had developed with JAVA and the requirement is that I have to integrate WalletConnect with my app. As library is developed in Kotlin but I made a Kotlin class in my Java project and do all the Kotlin stuff in my that class and access it from Java based activity.

Please make sure the feasibility what I am trying to achieve.
FYI: I am able to call a Kotlin class from Java activity but the desired purpose is not getting fulfilled due to above exception as shared.

Please give your expert opinion. Thanks in Advance!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant