I want to use BouncyCastle for GnuPG encryption (want to get .gpg file) in android. But I am getting this error.(Unsupported class file major version 59.
Failed to transform bcprov-jdk15on-1.67.jar (org.bouncycastle:bcprov-jdk15on:1.67) )
My gradle version is: gradle-6.7.1-bin.zip
JAVA_VERSION="1.8.0_242"
Please help.
Or if somebody can suggest me some other way to do GnuPG encryption in android, that will also be very helpful.
Following these two links:
https://github.com/bcgit/bc-java/issues/762
https://issuetracker.google.com/issues/172784894?pli=1
A workaround is adding below line into gradle.properties
android.jetifier.blacklist=bcprov-jdk15on
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With