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

When using pem utils v8.2.0 dependency in android, Duplicate class error in org.bouncycastle #435

Closed
mugheesakram opened this issue Jan 12, 2024 · 3 comments

Comments

@mugheesakram
Copy link

Describe the bug
Hi, I am working on Certificate pinning and came across your library. After reading through the documentation, I decided to use PemUtils Dependency. But, when I am compiling my code, it is giving me error:
Screenshot 2024-01-12 at 11 36 38 AM

I have also tried to exclude or pickfirst the latest version of org.bouncycastle in the packaging option but not working.

@Hakky54
Copy link
Owner

Hakky54 commented Jan 12, 2024

I recently updated bouncy castle to resolve a transitive vulnerability see here for the details: #387

The message which you are getting is saying that you have 2 jars in your class path which have identical classes with identical package name.

The solution would be excluded one or the other dependency. Can you try to exclude any of the conflicting dependency?

If it won't resolve I can further help, but then I also need your dependency tree here.

@Hakky54
Copy link
Owner

Hakky54 commented Jan 12, 2024

I also found out that this issue is similar to yours, can you have a look at this page and also try the sugested solution on your side? https://stackoverflow.com/questions/75070405/duplicate-class-found-for-bouncycastle and stripe/stripe-android#3173

Copy link

stale bot commented Jan 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the no-activity label Jan 26, 2024
@stale stale bot closed this as completed Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants