Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. I cant sign my app

I cant sign my app

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 518 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DoohamD Offline
    DoohamD Offline
    Dooham
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alexei Vinidiktov
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • E Offline
        E Offline
        e2002e
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved