Jump to content

An error occurred while signing your Android application. Please check the passwort of your keyfile / certificate and try again!


Recommended Posts

HI,

 

I've followed your post here:

i've achieved all the green boxes, created a keystore fine, then looked to align and sign an app.

I get the below error message yet the passwords are correct, 100%:

"An error occurred while signing your Android application. Please check the passwort of your keyfile / certificate and try again!"

 

The last bits of the console code show the following - please help!

Thanks

Nathan

console code:

res/xml/tun_set_support_all_preset_command_sequence_command_list.xml (OK - compressed)
44201075 res/xml/tun_set_support_preset_command_sequence_command_list.xml (OK - compressed)
44201560 resources.arsc (OK)
Verification succesful
java.lang.UnsupportedClassVersionError: com/android/apksigner/ApkSignerTool has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" 

  • Sad 1
Link to post

Hi @Nathan A

thanks for your using our software tool to sign your APK files. The error log you provided indicates what's the problem is, already. Please see this line

Quote

java.lang.UnsupportedClassVersionError: com/android/apksigner/ApkSignerTool has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0

So just updating your java runtime should do the trick.

https://java.com/en/download/

Let me know if you still have struggles.

best,

Andreas

Link to post

Hello Andreas,

I'm facing the same issue that Nathan faced. I updated both Java runtime and JDK 8 to u251 build but still the app is giving same error as mentioned above.

The app is producing "Aligned" file but gives error while signing.

Kindly advise.

Link to post
On 6/20/2020 at 12:25 PM, Vishal said:

Hello Andreas,

I'm facing the same issue that Nathan faced. I updated both Java runtime and JDK 8 to u251 build but still the app is giving same error as mentioned above.

The app is producing "Aligned" file but gives error while signing.

Kindly advise.

Hi @Vishal

Sorry to hear that. Had it worked before? And stopped working suddenly? I'm currently try to figure out what's wrong here.

Have you created the key with our tool? Or with another tool, like Android Studio or Visual Studio? Any information is helping me to figure out the issue.

Thank you,

Andreas

Link to post
On 6/20/2020 at 11:25 AM, Vishal said:

Hello Andreas,

I'm facing the same issue that Nathan faced. I updated both Java runtime and JDK 8 to u251 build but still the app is giving same error as mentioned above.

The app is producing "Aligned" file but gives error while signing.

 in my computer i am using the same version of JDK and JRE (1.8.0_251)

 

Link to post

Hi everyone at last i found a solution for this error. Here is a list of class file vs java version 

49 = Java 5
50 = Java 6
51 = Java 7
52 = Java 8
53 = Java 9
54 = Java 10
55 = Java 11
56 = Java 12
57 = Java 13
58 = Java 14

as you can see 53 is for java 9 so you need to install java 9 in order to work with "APK Signer Tool (v2) 2.0.6 beta" also you need to set environment variable and path of java in your system settings. here is a download link of java 9 jdk.

https://www.oracle.com/java/technologies/javase/javase9-archive-downloads.html

  • Like 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy, Terms of Use, We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. & Guidelines.