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. Can't build for android anymore
Forum Updated to NodeBB v4.3 + New Features

Can't build for android anymore

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 322 Views
  • 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.
  • G Offline
    G Offline
    gween
    wrote on last edited by
    #1

    I was able to build for android in a pervious project (which is now long deleted). I just tried again with one of Qt's example projects and get this error:

    BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65
    

    I read in some posts that this may be a mismatch in some version, but don't know enough about the Qt configuration to fix it.

    I uninstalled all of my android resources and reinstalled the JDK, and re-ran Set Up SDK, but still get this same error.

    What am I missing here? Where is the mismatch?

    Specs:

    • Apple M2
    • Qt 6.5.2
    • Kit is Auto-detected (I haven't modified anything there)
    • Device Android 13 SDK 33, arm64-v8a, Pixel 6
    • NDK 25.1.8937393
    • openjdk 11.0.21 2023-10-17
      OpenJDK Runtime Environment Homebrew (build 11.0.21+0)
      OpenJDK 64-Bit Server VM Homebrew (build 11.0.21+0, mixed mode)
    1 Reply Last reply
    0
    • G Offline
      G Offline
      gween
      wrote on last edited by
      #2

      For posterity - I'm not sure what the original issue was, but after uninstalling all of my android resources and reinstalling, I had installed the JDK v21 which didn't work for me. After downgrading to JDK v17 LTS I was able to build.

      JoeCFDJ 1 Reply Last reply
      0
      • G gween has marked this topic as solved on
      • G gween

        For posterity - I'm not sure what the original issue was, but after uninstalling all of my android resources and reinstalling, I had installed the JDK v21 which didn't work for me. After downgrading to JDK v17 LTS I was able to build.

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @gween
        Check the compatibility here.
        https://forum.qt.io/topic/151244/online-installed-android-qt-6-6-but-build-requires-newer-version/6?_=1698264645788

        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