Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22504

Wrong Java gets picked up when building an example for Android

    XMLWordPrintable

Details

    • Windows
    • 7d00aeb33e723d63267b8cd79632a912e887a29b (qt-creator/qt-creator/master)

    Description

      Steps to reproduce:

      1. Install Qt 5.13.0-beta4 (with QtC 4.9.1 and QtC 4.10.0-beta1) from staging servers
      2. Select e.g. 'wiggly' example from Welcome Screen
      3. Launch QtC 4.10.0-beta1 and set the Java JDK, Android SDK and NDK paths in Devices
      4. Run 'qmake'
      5. 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.

      Attachments

        1. 4.10.0_beta1.txt
          27 kB
        2. 4.9.1.txt
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes