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 #1044

Open
Mike-bel opened this issue Jul 21, 2023 · 3 comments
Open

NoSuchMethodError #1044

Mike-bel opened this issue Jul 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Mike-bel
Copy link

Mike-bel commented Jul 21, 2023

This is my gradle dependencies:

implementation(platform("com.walletconnect:android-bom:1.14.0"))
implementation("com.walletconnect:android-core")
implementation("com.walletconnect:web3wallet")

when I call Web3Wallet.approveSession or rejectSession like this

Web3Wallet.approveSession(approveProposal,
                onError = { error ->

                },
                onSuccess = {

                })

the app will be crashed

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/ai.ave.platform-Tq-ZlXpbizRYMdkQzTTzHA==/base.apk!classes30.dex)
        at com.walletconnect.sign.engine.model.mapper.EngineMapperKt.toSessionProposeRequest(EngineMapper.kt:83)
        at com.walletconnect.sign.engine.domain.SignEngine.approve$sign_release(SignEngine.kt:301)
        at com.walletconnect.sign.client.SignProtocol.approveSession(SignProtocol.kt:130)
        at com.walletconnect.sign.client.SignClient.approveSession(Unknown Source:17)
        at com.walletconnect.web3.wallet.client.Web3Wallet.approveSession(Web3Wallet.kt:114)

I think is kotlin gradle version not compat or any config not right?

@Mike-bel Mike-bel added the bug Something isn't working label Jul 21, 2023
@Talhaali00
Copy link
Contributor

@Mike-bel
Can you provide some details as PR our template about your setup?

@Mike-bel
Copy link
Author

@Mike-bel Can you provide some details as PR our template about your setup?

thanks, I Re edited the issue and provided a detailed description.

@maciejkrolik
Copy link

Same issue :( Works as expected with BOM 1.13.1

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

3 participants