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

AVD emulator images are not listed when JAVA_HOME is not set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • Qt Creator 4.6.1
    • Qt Creator 4.6.0-rc1
    • Android Support
    • None

      When installing Android Studio, a Java environment is installed along with it. When configuring Creator to use that by going to:

      Tools -> Options... -> Devices -> Android tab -> JDK location

      and pointing it to:

      /opt/android-studio/jre

      the location is recognized and everything works as expected. Except for the AVD Manager tab. The list where AVDs would normally appear is empty and thus the emulator cannot be started.

      For this to work, I have to manually start Creator from the command line using:

      JAVA_HOME=/opt/android-studio/jre /path/to/qtcreator

      The AVDs then appear and can be started.

      Given that Creator already knows the path to the JAVA installation, setting JAVA_HOME manually should not be necessary.

        For Gerrit Dashboard: QTCREATORBUG-19988
        # Subject Branch Project Status CR V

            vikas Vikas Pachdha
            realnc Nikos Chantziaras
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes