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

Please update Bouncy Castle #2426

Open
Neustradamus opened this issue Jan 12, 2021 · 2 comments
Open

Please update Bouncy Castle #2426

Neustradamus opened this issue Jan 12, 2021 · 2 comments
Assignees
Milestone

Comments

@ShivamPokhriyal
Copy link
Contributor

Seems like bcprov-jdk15on-1.68 contains class files that require java 15 and the build fails with

Execution failed for task ':app:compileCommcareDebugKotlin'.
> Could not resolve all artifacts for configuration ':app:commcareDebugCompileClasspath'.
   > Failed to transform bcprov-jdk15on-1.68.jar (org.bouncycastle:bcprov-jdk15on:1.68) 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/dsi-admin/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.68/46a080368d38b428d237a59458f9bc915222894d/bcprov-jdk15on-1.68.jar.
         > Failed to transform '/Users/dsi-admin/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.68/46a080368d38b428d237a59458f9bc915222894d/bcprov-jdk15on-1.68.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 59. (Run with --stacktrace for more details.)

I think it's because jetifier doesn't handle multi-release jars and I can turn it off using android.jetifier.blacklist=bcprov-jdk15on-1.68.jar but I'm not sure if that's a good way.

I read here that If you have issues with multi-release jars see the jdk15to18 release jars below so I'm gonna go ahead and use jdk15to18 instead of jdk15on.

@Neustradamus
Copy link
Author

@ShivamPokhriyal: Good job, thanks for your update!

In the same time, can you update to 1.69?

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