QtCreator setup for android, "Couldn't find ' /Library/Java/JavaVirtualMachines/jdk-23.jdk/bin/javac in the selected path'"
-
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. -
Hi
can you please post some screenshots of your android setup in Qt Creator preferences ?
-
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.
-
-
According to this doc, the version of JDK has to be 17, you apparently tried with 23
-
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 -
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.
-
Just select "Home" from the before last column, to deselect everything from the last, then open button. this should work
-
S SGaist has marked this topic as solved on