Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtCreator setup for android, "Couldn't find ' /Library/Java/JavaVirtualMachines/jdk-23.jdk/bin/javac in the selected path'"
Forum Updated to NodeBB v4.3 + New Features

QtCreator setup for android, "Couldn't find ' /Library/Java/JavaVirtualMachines/jdk-23.jdk/bin/javac in the selected path'"

Scheduled Pinned Locked Moved Solved QML and Qt Quick
11 Posts 2 Posters 747 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.
  • N Offline
    N Offline
    Nikko1
    wrote on last edited by
    #1

    I am trying to configure QtCreator 14.0.1 for android development using latest QT distribution on mac os big sur version 11.7.10. I am official QT guide for that. When providing path for JDK, I always encounter this error msg. I tried downloading different version of JDK but it always results in same error.
    If someone tells about solution will be great favor.

    1 Reply Last reply
    0
    • A Online
      A Online
      ankou29666
      wrote on last edited by
      #2

      Hi

      can you please post some screenshots of your android setup in Qt Creator preferences ?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nikko1
        wrote on last edited by
        #3

        Screenshot 2024-09-26 at 22.57.18.jpg

        1 Reply Last reply
        0
        • A Online
          A Online
          ankou29666
          wrote on last edited by ankou29666
          #4

          There's nothing setup for android.

          You need to :

          • install Android Studio
          • install a JDK (like Eclipse JDK) version that matches the version of Qt you want to build with
          • and as far as I remember the rest of the stuff can be done either with "Setup SDK" or "SDK manager" button.

          This won't be sufficient, but once you're done this, we can proceed further.

          1 Reply Last reply
          1
          • N Offline
            N Offline
            Nikko1
            wrote on last edited by
            #5

            OK, thank. I try to continue all over again. Though I followed all steps from this QT official guide and problems started right from 1st step that's to install JDK as the error that appears here about Javac started appearing while in guide, it went OK.

            1 Reply Last reply
            0
            • A Online
              A Online
              ankou29666
              wrote on last edited by
              #6

              According to this doc, the version of JDK has to be 17, you apparently tried with 23

              1 Reply Last reply
              0
              • N Offline
                N Offline
                Nikko1
                wrote on last edited by
                #7

                I searched and it says 17 or above. I started with 17, same issue then I tried other versions.

                1 Reply Last reply
                0
                • A Online
                  A Online
                  ankou29666
                  wrote on last edited by
                  #8

                  Have you searched in the subdirectories ? the path I supply is not the root of the JDK but
                  "/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home" instead

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    Nikko1
                    wrote on last edited by
                    #9

                    Yes, I can find Java in sub-directory but QtCreator do not recognise it somehow. Actual problem is the Qt Android guide video is made so bad by the guy that it's difficult to see what configuration the guy is making. He just runs through the configuration in blink of an eye like he is revising for himself, not making people follow him. One need to stop video frame by frame to peep into what was in that step that goes in a 100th part of a second.
                    Screenshot Lower size.jpg

                    1 Reply Last reply
                    0
                    • A Online
                      A Online
                      ankou29666
                      wrote on last edited by
                      #10

                      Just select "Home" from the before last column, to deselect everything from the last, then open button. this should work

                      1 Reply Last reply
                      1
                      • N Offline
                        N Offline
                        Nikko1
                        wrote on last edited by
                        #11

                        Thanks a lot, it fine now !Screenshot resize1.jpg

                        1 Reply Last reply
                        0
                        • SGaistS SGaist has marked this topic as solved on

                        • Login

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