Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Configuration issue with Qt for Android (Qt 6) --> whitespace in path
QtWS25 Last Chance

Configuration issue with Qt for Android (Qt 6) --> whitespace in path

Scheduled Pinned Locked Moved Solved Qt 6
2 Posts 1 Posters 336 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.
  • S Offline
    S Offline
    Sun__
    wrote on last edited by Sun__
    #1

    Odd problem, leaving it here for reference.

    Hi, I am new to both Qt and Android Studio. I have Qt Creator 4.15.0 (Community) & Qt 6.1.0 (MinGW 8.1.0 64-bit) installed first.

    Background: I have previously installed AS last year & uninstalled it. I changed my username & updated the indexes before uninstalling the previous AS ; new username contains space.

    I followed this Qt 5 for Android guide which I found comprehensive https://wiki.qt.io/Android. I downloaded AS 4.2.1 & java version "1.8.0_291"
    In my AS, Tools > SDK manager
    Android SDK Location: C:\Users*new name*\AppData\Local\Android\Sdk
    0e222b9f-c674-49ec-a6e4-98d285a6d54c-image.png
    fdba1f0c-4497-43ea-bdc3-ea88880a0e4c-image.png
    bcb45808-b30d-433f-adf2-02d22abea4f1-image.png
    b1006c07-1806-48bd-808d-95c40099a5b8-image.png
    e0a77c4b-fb46-4eb1-941c-d8e380cbf8de-image.png

    The settings may look odd because initially, in my Qt Creator, Tools > Options > Devices > Android, the only error in Android Settings was
    acdb8e1e-4bdf-4c79-b754-eeedecfd7cf9-image.png
    I found the essential packages to be: Android SDK Command-line Tools (latest), Google USB Driver, NDK (Side by side) 21.3.6528147 & Android SDK Build-Tools 30.0.2 & went to AS to install them. I went back to Qt Creator to find that there are more errors.

    These are what I have now
    4a871e79-db27-428e-bbec-56f740f8498a-image.png
    I copied NDK there to fix this issue I had
    28c3ff42-c1e3-4d12-874f-7b4d5e669bb5-image.png
    cont'd
    f2be6f26-ed10-4959-a676-931b8067c066-image.png
    c45158f0-2d56-41aa-aee7-bb1ddecf4164-image.png

    Help is greatly appreciated!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sun__
      wrote on last edited by Sun__
      #2

      The main problem was with the whitespace in SDK & NDK path of Android Settings. I moved Android folder directly to C drive i.e. C:\Android. I also uninstalled unnecessary packages & was left with Android 11, Android SDK 30.0.2, NDK (Side by side) 21.3.6528147, Android SDK Command-line Tools (latest), Android Emulator, Android SDK Platform-Tools, Android SDK Tools (obsolete), Google USB Driver & Intel x86 Emulator Accelerator (HAXM installer).

      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