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. QT Creator and Android SDK
Forum Updated to NodeBB v4.3 + New Features

QT Creator and Android SDK

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 513 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.
  • A Offline
    A Offline
    AlexP27
    wrote on 3 Apr 2020, 21:39 last edited by
    #1

    Dear all

    I have QT Creator
    d210b6c3-0d6d-4d83-a112-9b84558a8df1-image.png

    and the following ANDROID SDK installed (the latest one)

    89ea122b-2938-454a-9529-3f375a152902-image.png

    I followed QT guide to set up SDK and NDK in QT Creator properly,
    f4c17e34-7c48-4850-8339-8e1352276a3e-image.png

    but QT does not recognize Android SDK

    Android build SDK not defined. Check Android settings.
    Error while building/deploying project Moby (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.1 for Android))
    When executing step "Build Android APK"

    fcf467e3-3f59-40af-8630-d20e09e19ac9-image.png

    Would you be so kind to give some hints&tips how to tackle that issue?

    I really appreciate your help!

    K 1 Reply Last reply 4 Apr 2020, 15:02
    0
    • A AlexP27
      3 Apr 2020, 21:39

      Dear all

      I have QT Creator
      d210b6c3-0d6d-4d83-a112-9b84558a8df1-image.png

      and the following ANDROID SDK installed (the latest one)

      89ea122b-2938-454a-9529-3f375a152902-image.png

      I followed QT guide to set up SDK and NDK in QT Creator properly,
      f4c17e34-7c48-4850-8339-8e1352276a3e-image.png

      but QT does not recognize Android SDK

      Android build SDK not defined. Check Android settings.
      Error while building/deploying project Moby (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.1 for Android))
      When executing step "Build Android APK"

      fcf467e3-3f59-40af-8630-d20e09e19ac9-image.png

      Would you be so kind to give some hints&tips how to tackle that issue?

      I really appreciate your help!

      K Offline
      K Offline
      KroMignon
      wrote on 4 Apr 2020, 15:02 last edited by
      #2

      @AlexP27 Hello and welcome to this developer Forum.

      You have to install Android SDK ToolsPlease take a look to this post: https://forum.qt.io/post/585927, this will show you how to do it.

      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

      A 1 Reply Last reply 5 Apr 2020, 07:51
      2
      • K KroMignon
        4 Apr 2020, 15:02

        @AlexP27 Hello and welcome to this developer Forum.

        You have to install Android SDK ToolsPlease take a look to this post: https://forum.qt.io/post/585927, this will show you how to do it.

        A Offline
        A Offline
        AlexP27
        wrote on 5 Apr 2020, 07:51 last edited by AlexP27 4 May 2020, 07:53
        #3

        Hi @KroMignon

        Thank you for you help! It really sorted out my issue completely.

        I install tools + plus i had to move JDK 8 (from 11)

        5ced0f51-2b6b-4dad-bbda-a7119351394b-image.png

        The single one issue i notices during building is
        Found corrupted package.xml at C:\Users\user\AppData\Local\Android\sdk\lldb\3.1\package.xml

        However building project finished successfully:
        BUILD SUCCESSFUL in 3m 29s
        25 actionable tasks: 25 executed

        Package.xml looks like

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:repository xmlns:ns2="http://schemas.android.com/repository/android/common/01" xmlns:ns3="http://schemas.android.com/repository/android/generic/01" xmlns:ns4="http://schemas.android.com/sdk/android/repo/addon2/01" xmlns:ns5="http://schemas.android.com/sdk/android/repo/repository2/01" xmlns:ns6="http://schemas.android.com/sdk/android/repo/sys-img2/01"><license id="android-sdk-license" type="text">

        ---------Stacktrace------
        org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 460; XML document structures must start and end within the same entity.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
        at

        That looks strange since xml looks correct.

        1 Reply Last reply
        0

        1/3

        3 Apr 2020, 21:39

        • Login

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