WalletConnectKotlinV2
WalletConnectKotlinV2 copied to clipboard
NoSuchMethodError
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 Can you provide some details as PR our template about your setup?
@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.
Same issue :( Works as expected with BOM 1.13.1