Android Question jarsigner error: java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm

hatzisn

Well-Known Member
Licensed User
Hi everyone,

When I try to compile with a private key I have this problem:

B4X:
B4A Version: 7.80
Parsing code.    (0.00s)
Compiling code.    (0.02s)
   
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.03s)
Organizing libraries.    (0.00s)
Generating R file.    (0.05s)
Compiling generated Java code.    (0.90s)
Convert byte code - optimized dex.    (0.39s)
Packaging files.    (0.12s)
Copying libraries resources    (0.00s)
Signing package file (private key).    Error

jarsigner error: java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size

When I try to compile with debug key everything works ok.
I was using Java 8 update 162 when this error occured. I upgraded to the latest java 8 update 172 and have set the compiler to: "C:\Program Files\Java\jdk1.8.0_172\bin\javac.exe"

The android.jar is set to: "C:\B4A\android-sdk\platforms\android-27\android.jar"

I cannot compile anything anymore and I REALLY hate unpleasant surprises.


Any solution will be highly appreciated...
Thanks,
Nikos
 
Last edited:

hatzisn

Well-Known Member
Licensed User
Last edited:
Upvote 0
Top