certificatetransparency icon indicating copy to clipboard operation
certificatetransparency copied to clipboard

Getting NoClassDefFoundError

Open AndroidDev08 opened this issue 3 years ago • 1 comments

Hi,

I added the certificate transparency logger to my project and I am getting the below crash for NoClassDefFoundError.

implementation 'com.appmattus.certificatetransparency:certificatetransparency-android:1.1.0'

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/bouncycastle/tls/TlsUtils; at com.appmattus.certificatetransparency.internal.utils.X509CertificateExtKt.parseSctsFromCertExtension(X509CertificateExt.kt:52) at com.appmattus.certificatetransparency.internal.utils.X509CertificateExtKt.signedCertificateTimestamps(X509CertificateExt.kt:43) at com.appmattus.certificatetransparency.internal.verifier.CertificateTransparencyBase.hasValidSignedCertificateTimestamp(CertificateTransparencyBase.kt:127) at com.appmattus.certificatetransparency.internal.verifier.CertificateTransparencyBase.verifyCertificateTransparency(CertificateTransparencyBase.kt:95) at com.appmattus.certificatetransparency.internal.verifier.CertificateTransparencyInterceptor.intercept(CertificateTransparencyInterceptor.kt:69)

Thanks Ankit

AndroidDev08 avatar Jun 02 '22 07:06 AndroidDev08

This looks likely to be a conflict with the version of bouncycastle being resolved by your project. Some of these classes moved from version 1.6x to 1.7x which we currently use.

It would be worth running ./gradlew app:dependencies and seeing what versions were resolved

mattmook avatar Jun 14 '22 08:06 mattmook