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

Compilation failure in v0.9.7 #29

Closed
sgc-code opened this issue Nov 18, 2020 · 1 comment
Closed

Compilation failure in v0.9.7 #29

sgc-code opened this issue Nov 18, 2020 · 1 comment

Comments

@sgc-code
Copy link
Contributor

I can't compile the latest version (v0.9.7). It might be because my project needs the jetifier.

   > Failed to transform bcprov-jdk15on-1.66.jar (org.bouncycastle:bcprov-jdk15on:1.66) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Execution failed for JetifyTransform: /Users/sgc-code/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.66/ed564ade61defca27e26fb1378a70b22831fc5c1/bcprov-jdk15on-1.66.jar.
         > Failed to transform '/Users/sgc-code/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.66/ed564ade61defca27e26fb1378a70b22831fc5c1/bcprov-jdk15on-1.66.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 59. (Run with --stacktrace for more details.)
           Suggestions:
            - Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
            - If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).

This is related to the latest update to org.bouncycastle:bcprov-jdk15on:1.66. As a workaround i'm using:

    implementation "com.github.WalletConnect:kotlin-walletconnect-lib:0.9.7", {
        exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on'
    }
    implementation 'org.bouncycastle:bcprov-jdk15on:1.65.01'

I tested with a few other versions of the bouncy castle library and here are the results:

    implementation 'org.bouncycastle:bcprov-jdk15on:1.64' // ok
    implementation 'org.bouncycastle:bcprov-jdk15on:1.65' // ok
    implementation 'org.bouncycastle:bcprov-jdk15on:1.65.01' // ok
    implementation 'org.bouncycastle:bcprov-jdk15on:1.66' // error
    implementation 'org.bouncycastle:bcprov-jdk15on:1.67' // error

Maybe we can revert to the last working version

@ligi ligi closed this as completed in 52e840a Mar 18, 2021
@soshial
Copy link

soshial commented Nov 14, 2023

Looking forward to updating to the version of bouncycastle that doesn't have vulnerabilities. Any blockers to upgrade to bcprov-jdk18on:1.76?

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

2 participants