Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.10.0-beta1
-
-
7d00aeb33e723d63267b8cd79632a912e887a29b (qt-creator/qt-creator/master)
Description
Steps to reproduce:
- Install Qt 5.13.0-beta4 (with QtC 4.9.1 and QtC 4.10.0-beta1) from staging servers
- Select e.g. 'wiggly' example from Welcome Screen
- Launch QtC 4.10.0-beta1 and set the Java JDK, Android SDK and NDK paths in Devices
- Run 'qmake'
- Build
Expected result:
The example gets built
Actual result:
Build fails with:
> Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_171 contains a valid JDK installation.
A wrong Java path is picked (In C:\Program Files\Java\ I have 'jre1.8.0_171' and 'jdk1.8.0_121'). The AndroidConfigurations is:
[AndroidConfigurations] ChangeTimeStamp=1534154168 SDKLocation=C:/utils/Android SDKManagerToolArgs=@Invalid() NDKLocation=C:/utils/Android/android-ndk-r19c OpenJDKLocation=C:/Program Files/Java/jdk1.8.0_121 KeystoreLocation= PartitionSize=1024 AutomatiKitCreation=true ToolchainHost=windows DeviceQmlsceneCommand=org.qtproject.example.qmlscene/org.qtproject.qt5.android.bindings.QtActivity MakeExtraSearchDirectory=C:/Users/QT/RTA/qt5/Tools/mingw530_32/bin AntLocation=C:/Program Files/apache-ant/apache-ant-1.10.1/bin/ant.bat UseGradle=false
But the wrong Java seems to be picked up at build time. If I removed the jre from the location, the example still didn't seem to get built completely. Using the same Qt version (and the same Android settings), but QtC 4.9.1, this did not reproduce.