Just deployed my application for test distribution and for my surprise I got this error:
java.security.NoSuchAlgorithmException: Provider SC does not provide RSA/None/PKCS1Paddingat javax.crypto.Cipher.createCipher(Cipher.java:738)
This only happens when I generate the apk for distribution. When I run the app in any mode directly from the Android Studio it works fine.
I already verified the line Security.addProvider(BouncyCastleProvider()) and it's there.
Any idea why this happens? Any permission I must add to AndroidManifest?
Just deployed my application for test distribution and for my surprise I got this error:
java.security.NoSuchAlgorithmException: Provider SC does not provide RSA/None/PKCS1Padding
at javax.crypto.Cipher.createCipher(Cipher.java:738)
This only happens when I generate the apk for distribution. When I run the app in any mode directly from the Android Studio it works fine.
I already verified the line
Security.addProvider(BouncyCastleProvider())
and it's there.Any idea why this happens? Any permission I must add to AndroidManifest?