Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

I cant sign my app



  • Hello everyone.

    Recently I made a new version of an app that I made a few months ago. However, when I try to release the app and sign it, I get the following error:

    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

    I am not sure how to solve the problem. I have the jdk 8, it seems that its related whit that.
    But if I change the version of jdk, the problem its that the sdk requires the verion 8.



  • I'm experiencing the same problem. Help would be greatly appreciated.



  • With qt5, you need the jdk8 and ndk-r21
    what i understand from the error is that the failing part is either written in java for desktop or in java for arm, and run either within the environment of the ndk or the host's one.

    If jdk8 is well setup in options > devices > android it probably then is some come that is run with the host's java interpreter.
    In your case even though you files are older, they are meant for a newer version of java. try update-java-alternatives with the option -l to list your jdks and the option -s <name> to set jdk8 to the default, provided you work with linux.


Log in to reply