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

NoClassDefFoundError: org/bouncycastle/asn1/edec/EdECObjectIdentifiers #437

Open
simonseyer opened this issue Feb 23, 2025 · 0 comments
Open

Comments

@simonseyer
Copy link

simonseyer commented Feb 23, 2025

Hello,

after upgrading the plugin we ran into an issue when executing Android tests with the Gradle task connectedDevDebugAndroidTest.

The error stated:

> org/bouncycastle/asn1/edec/EdECObjectIdentifiers
...
Caused by: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/edec/EdECObjectIdentifiers
  • AGP version: 8.8.1
  • org.owasp.dependencycheck: 12.1.0

I found out that people face the same issue with the SonarQube plugin: https://community.sonarsource.com/t/sonarqube-gradle-plugin-6-0-breaks-android-tasks/130863. The workaround of adding the following code block to the build.gradle file worked for me:

buildscript {
    dependencies {
        classpath("org.bouncycastle:bcutil-jdk18on:1.79")
    }
}

There is a Google issue and this will apparently be fixed with AGP version 8.9: https://issuetracker.google.com/issues/380600747

I wanted to share the issue and fix here to maybe save others a few hours of research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant