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

Update BouncyCastle in org.web3j:core:4.8.7-android #2008

Closed
mahdit8 opened this issue Mar 4, 2024 · 3 comments
Closed

Update BouncyCastle in org.web3j:core:4.8.7-android #2008

mahdit8 opened this issue Mar 4, 2024 · 3 comments
Labels
needs-review issue/PR needs review from maintainer

Comments

@mahdit8
Copy link

mahdit8 commented Mar 4, 2024

Issue_title

After attempting to use another library that utilizes BouncyCastle version 1.77, I encountered a dependency issue. Upon inspecting the dependency tree for the latest Android version of org.web3j:core:4.8.7-android, I observed the following dependency. I believe updating to a newer version is necessary to accommodate the new version of BouncyCastle.

+--- org.web3j:core:4.8.7-android
|    +--- org.web3j:abi:4.8.7-android -> 4.9.5
|    |    \--- org.web3j:utils:4.9.5
|    |         \--- org.bouncycastle:bcprov-jdk15on:1.68

Issue_description

Leads to build error:
Caused by: java.lang.RuntimeException: Duplicate class org.bouncycastle.LICENSE found in modules jetified-bcprov-jdk15on-1.68 (org.bouncycastle:bcprov-jdk15on:1.68) and jetified-bcprov-jdk18on-1.77 (org.bouncycastle:bcprov-jdk18on:1.77)

@mahdit8 mahdit8 added the needs-review issue/PR needs review from maintainer label Mar 4, 2024
@mahdit8 mahdit8 changed the title Update BoncyCastle in org.web3j:core:4.8.7-android Update BouncyCastle in org.web3j:core:4.8.7-android Mar 4, 2024
@BradMoeller
Copy link

Also ran into this issue after updating the latest version of wallet connect kotlin: https://github.com/WalletConnect/WalletConnectKotlinV2

@Talhaali00
Copy link

@BradMoeller
There's a new release of WalletConnect which resolves this issue on Android

@NickSneo
Copy link
Contributor

Closing as a hotfix is provided in release web3j-4.9.8-hotfix
Thanks @Talhaali00 for contributing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-review issue/PR needs review from maintainer
Projects
None yet
Development

No branches or pull requests

4 participants