Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. The first use of Android emulator
Forum Updated to NodeBB v4.3 + New Features

The first use of Android emulator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 2.5k Views 1 Watching
  • 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by
    #1

    Hi guys,

    Using Qt Creator 5.8 I created an app named App1 following the Creating the Project section.
    Then created an AVD like this the ran the app and chose the Virtual Device > OK and waited and waited.

    alt text

    No virtual device will be shown to see my app work there!
    I created another AVD as follows and did the works above using this one.

    alt text

    Again, no result!
    I see no errors too.
    What is your idea about the problem please?

    jsulmJ 1 Reply Last reply
    0
    • tomyT tomy

      Hi guys,

      Using Qt Creator 5.8 I created an app named App1 following the Creating the Project section.
      Then created an AVD like this the ran the app and chose the Virtual Device > OK and waited and waited.

      alt text

      No virtual device will be shown to see my app work there!
      I created another AVD as follows and did the works above using this one.

      alt text

      Again, no result!
      I see no errors too.
      What is your idea about the problem please?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @tomy Do you see any warnings/errors in QtCreator "Application Output" and "Compile Output" tabs? Also which Kit do you use (is it ARM v7 and API level 22?)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • tomyT Offline
        tomyT Offline
        tomy
        wrote on last edited by
        #3

        I used this:
        AVD_for_Nexus_4_by_Google API 22 armeabi

        And got the followings in the "Compile Output":

        // ...(Many lines here ended to build successful)
        BUILD SUCCESSFUL

        Total time: 5.413 secs
        Android package built successfully in 14.136 ms.
        -- File: C:/Users/CS/Documents/Qt/App1/build-App1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-build//build/outputs/apk/android-build-debug.apk
        Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
        Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
        12:26:30: The process "C:\Qt\Qt5.8.0\5.8\android_armv7\bin\androiddeployqt.exe" exited normally.
        Error while building/deploying project App1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
        When executing step "Deploy to Android device"
        12:28:35: Elapsed time: 02:20.

        1 Reply Last reply
        0
        • tomyT Offline
          tomyT Offline
          tomy
          wrote on last edited by tomy
          #4

          I thought much about it. The problem whatever it is, it belongs to the kit.
          I created another project.
          Whatever I create I get that error.

          Error while building/deploying project QApp_1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0)) When executing step "Deploy to Android device"

          It took about 10 days so that I could have the system images on SDK. Now that it was solved I have this new issue.

          Let me ask you a question: how to you use Android Emulator please?

          jsulmJ 1 Reply Last reply
          0
          • tomyT tomy

            I thought much about it. The problem whatever it is, it belongs to the kit.
            I created another project.
            Whatever I create I get that error.

            Error while building/deploying project QApp_1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0)) When executing step "Deploy to Android device"

            It took about 10 days so that I could have the system images on SDK. Now that it was solved I have this new issue.

            Let me ask you a question: how to you use Android Emulator please?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @tomy Well, I just use it after configuring (but I use x86 as it is faster).
            Is it the only error message you see?
            Did you try to assign even less RAM to emulated device, like 1024MB?
            Did you try to use emulator from AndroidStudio to make sure it is not a general problem on your machine?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            tomyT 1 Reply Last reply
            1
            • jsulmJ jsulm

              @tomy Well, I just use it after configuring (but I use x86 as it is faster).
              Is it the only error message you see?
              Did you try to assign even less RAM to emulated device, like 1024MB?
              Did you try to use emulator from AndroidStudio to make sure it is not a general problem on your machine?

              tomyT Offline
              tomyT Offline
              tomy
              wrote on last edited by tomy
              #6

              @jsulm
              I also created a new ARM AVD using Android Studio (if you meant this by "use emulator from Android Studio"), with 760MB of RAM but the same problem with some warnings (as posted in above post as the error message of compile output).

              I thank you for pursuing the problem and dedicating time for it.

              I'm now downloading the x86 system images for SDK to use an x86 AVD later.

              jsulmJ 1 Reply Last reply
              0
              • tomyT tomy

                @jsulm
                I also created a new ARM AVD using Android Studio (if you meant this by "use emulator from Android Studio"), with 760MB of RAM but the same problem with some warnings (as posted in above post as the error message of compile output).

                I thank you for pursuing the problem and dedicating time for it.

                I'm now downloading the x86 system images for SDK to use an x86 AVD later.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @tomy I suggested to try to create a simple Java Android app in AndroidStudio and try to run it in emulator.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • tomyT Offline
                  tomyT Offline
                  tomy
                  wrote on last edited by
                  #8

                  @jsulm
                  I tried this tut and because of some errors when processing related to the packages recommended by Android Studio for installing/updating, I went to do it.

                  I will make that app as soon as packages are installed. (Unfortunately we don't have a good bandwidth here suitable for our needs).

                  Thanks.

                  1 Reply Last reply
                  0

                  • Login

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