Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Installing AVDs

Installing AVDs

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
16 Posts 3 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #6

    You need to open a command line there. Or add arguments (the avd) to properties of the android.bat file (right there in the middle of your pic) and then double click it.

    (Z(:^

    G 1 Reply Last reply
    1
    • sierdzioS sierdzio

      You need to open a command line there. Or add arguments (the avd) to properties of the android.bat file (right there in the middle of your pic) and then double click it.

      G Offline
      G Offline
      gabor53
      wrote on last edited by
      #7

      @sierdzio
      I get the same error message no matter what command I use (for example update or list AVDs.

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #8

        OK, at least that means it is not Qt bug, but something in Android SDK. Make sure your SDK installtion is corrects and that you have correct Java JDK version.

        (Z(:^

        G 1 Reply Last reply
        0
        • sierdzioS sierdzio

          OK, at least that means it is not Qt bug, but something in Android SDK. Make sure your SDK installtion is corrects and that you have correct Java JDK version.

          G Offline
          G Offline
          gabor53
          wrote on last edited by
          #9

          @sierdzio
          Which versions can I use together?

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by sierdzio
            #10

            No idea, I'm still on some mighty old SDK/NDK/Java combo and I'm afraid to update it. Every time I try, something breaks ;-)

            Looking at their Wiki it seems that they recommend OpenJDK 1.8, so the same stuff you have already (unless you are using Oracle Java then it might cause issues).

            Have you tried reinstalling the SDK?

            (Z(:^

            G 1 Reply Last reply
            0
            • sierdzioS sierdzio

              No idea, I'm still on some mighty old SDK/NDK/Java combo and I'm afraid to update it. Every time I try, something breaks ;-)

              Looking at their Wiki it seems that they recommend OpenJDK 1.8, so the same stuff you have already (unless you are using Oracle Java then it might cause issues).

              Have you tried reinstalling the SDK?

              G Offline
              G Offline
              gabor53
              wrote on last edited by
              #11

              @sierdzio
              I am trying to reinstall, but it is possible to get the SDK only without Android Studio?

              sierdzioS 1 Reply Last reply
              0
              • G gabor53

                @sierdzio
                I am trying to reinstall, but it is possible to get the SDK only without Android Studio?

                sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #12

                @gabor53 said in Installing AVDs:

                I am trying to reinstall, but it is possible to get the SDK only without Android Studio?

                Yes, see https://stackoverflow.com/questions/27043522/where-can-i-download-an-older-version-of-the-android-sdk

                (Z(:^

                G 1 Reply Last reply
                0
                • sierdzioS sierdzio

                  @gabor53 said in Installing AVDs:

                  I am trying to reinstall, but it is possible to get the SDK only without Android Studio?

                  Yes, see https://stackoverflow.com/questions/27043522/where-can-i-download-an-older-version-of-the-android-sdk

                  G Offline
                  G Offline
                  gabor53
                  wrote on last edited by gabor53
                  #13

                  @sierdzio
                  The older versions don't work.
                  I followed the instructions on this page to set the JAVA_HOME.
                  After that I followed these instructions to create AVDs.
                  At this time I didn't have any error messages (neither using the command line nor using Qt > Options > Devices > AVD Manager.
                  If I use the command line theAVD is created, because there are no errormessages. The question is how to find the created AVDs and how to add them to Qt Devices? The AVD manager's add function is thinking for a while then exit without any messages and without adding the AVD.

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #14

                    I don't know, something is definitely broken in your SDK installation. I don't know how to fix it, and I have not ever seen this error myself.

                    (Z(:^

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      gabor53
                      wrote on last edited by
                      #15

                      This solved the problems for me:
                      I downloaded and installed AVD Manager.
                      It allows me to create AVDs and Qt can read them and place them under the AVD manager tab in Devices. The only problem is that the Target field in AVD manager is grayed out therefore I can't enter anything in that field. Without the target field Qt doesn't want to use the AVD. Is there any way to enter Target?

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        Diego Luna
                        wrote on last edited by
                        #16

                        I know this question is really old, but I like to left this for someone that might face the same problem. The most likely cause of this error is that the "java.exe" in the PATH it's from a JDK or JRE more recent than 1.8. A JDK or JRE 1.8 is required, the solution is to uninstall the JDK or JRE present and install the version1.8 of the JDK, or if like me, you can't do that, install the version1.8 of the JDK in another location and modify the PATH previous to launch QtCreator, something like: SET "PATH=path\to\jdk1.8;%PATH%".

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved