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. Deployment AVD cannot be started

Deployment AVD cannot be started

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 579 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.
  • G Offline
    G Offline
    gahjouyooj
    wrote on last edited by
    #1

    Hello, I've started creating mobile apps for android, via QtCreator's inbuilt SDK manager.

    It's a CMake Qt Widgets application that has not been modified in any meaningful way. I wanted to test out the emulator, just in case it doesn't work.

    It didn't.

    In particular, the error message is:

    BUILD SUCCESSFUL in 10s
    33 actionable tasks: 33 up-to-date
    Android package built successfully in 11.260 ms.
      -- File: U:/repos/StudyGo2/build/Android_Qt_6_9_0_Clang_arm64_v8a-Debug/android-build-StudyGo2//build/outputs/apk/debug/android-build-StudyGo2-debug.apk
    04:15:51: The process "C:\Qt\6.9.0\mingw_64\bin\androiddeployqt.exe" exited normally.
    04:16:21: The deployment AVD "GalaxyNexus" cannot be started.
    04:16:21: Error while building/deploying project StudyGo2 (kit: Android Qt 6.9.0 Clang arm64-v8a)
    04:16:21: When executing step "Deploy to Android device"
    04:16:21: Elapsed time: 00:42.
    

    AVD config:

    Device Name: Galaxy Nexus 
    Device Type: Emulator for ""
    Serial Number: Unknown
    CPU architecture: arm64-v8a
    OS version: Unknown Android Version. API Level: 36 (SDK 36)
    Android target flavour: Unknown 
    SD card size: Unknown
    Skin Type: Unknown 
    OpenGL status: Unknown 
    

    Projects mode config:
    Build and Run for Android Qt 6.9.0 Clang arm64-v8a.
    Everything here is set to the default configurations. Since the app compiled correctly, and the deployment fails before actually doing the deployment, I don't think this is the problem.

    I have HyperV turned on. I've also tried restarting in case it's an issue with the environment variables. I have not tried using ADB to deploy to a physical device, because I do not have an android device at the moment.

    I think a possible reason is SD card size being Unknown despite having selected the default option of 512MiB when creating the configuration. However, I don't know if this is normal, nor how to test it.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PK2n
      wrote last edited by
      #2

      I had this same problem on linux. It was due to avdmanager creates the avds in different folder than what emulator expects. So what I did was created link of avd directory from '~/.config/.android/avd' to '~/.android/avd' and it worked. May be there's similar issue with you.

      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