WalletConnectKotlinV2 icon indicating copy to clipboard operation
WalletConnectKotlinV2 copied to clipboard

NoSuchMethodError

Open Mike-bel opened this issue 1 year ago • 3 comments

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 avatar Jul 21 '23 16:07 Mike-bel

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

Talhaali00 avatar Jul 21 '23 16:07 Talhaali00

@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.

Mike-bel avatar Jul 22 '23 03:07 Mike-bel

Same issue :( Works as expected with BOM 1.13.1

maciejkrolik avatar Jul 30 '23 18:07 maciejkrolik