QtCreator setup for android, "Couldn't find ' /Library/Java/JavaVirtualMachines/jdk-23.jdk/bin/javac in the selected path'"
-
wrote on 26 Sept 2024, 19:27 last edited by
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. -
wrote on 26 Sept 2024, 19:30 last edited by
Hi
can you please post some screenshots of your android setup in Qt Creator preferences ?
-
wrote on 26 Sept 2024, 20:00 last edited by
-
wrote on 26 Sept 2024, 20:09 last edited by ankou29666
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.
-
wrote on 26 Sept 2024, 20:30 last edited by
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.
-
wrote on 26 Sept 2024, 20:33 last edited by
According to this doc, the version of JDK has to be 17, you apparently tried with 23
-
wrote on 26 Sept 2024, 20:46 last edited by
I searched and it says 17 or above. I started with 17, same issue then I tried other versions.
-
wrote on 26 Sept 2024, 21:27 last edited by
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 -
wrote on 27 Sept 2024, 09:52 last edited by
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.
-
wrote on 27 Sept 2024, 10:00 last edited by
Just select "Home" from the before last column, to deselect everything from the last, then open button. this should work
-
wrote on 27 Sept 2024, 12:08 last edited by
-
1/11