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. [Solved] Deploy project on real device
Forum Updated to NodeBB v4.3 + New Features

[Solved] Deploy project on real device

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.3k Views 2 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.
  • M Offline
    M Offline
    moravas
    wrote on 24 Sept 2015, 17:18 last edited by moravas
    #1

    Hi Folks,

    just for information: I solved this problem. It caused by the subdir organization of the project. As I discover, only the .exe was packed into the .apk and the other dll-s were missing. I don't know, how should I instruct the Qt to package other dll-s into the .apk as well so I restructure the project.

    Regards,
    Norbert

    Hi Folks,

    first of all I would like you to getting into context: I'm using Qt about 4 years ago on desktop and I have approximately 5 C++ experience.
    So, I have a "subdir" project. The development environment consist of the followings:

    • project target: desktop and armeabi7a
    • device: SoftwinerEvb tablet with API version 15
    • Installed APIs on the development PC: 15 and 23

    If I select the API15 as build target, I get the following error message:
    [aapt] <project/path>-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/AndroidManifest.xml:4: error: Error: String types not allowed (at 'configChanges' with value 'orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation').
    [aapt]

    BUILD FAILED
    <path>/android-sdk-linux/tools/ant/build.xml:649: The following error occurred while executing this line:
    <path>/android-sdk-linux/tools/ant/build.xml:694: null returned: 1

    Total time: 3 seconds
    Building the android package failed!
    -- For more information, run this command with --verbose.
    18:31:53: The process "<path>/Qt/5.5/android_armv7/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project engineering (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
    When executing step "Build Android APK"

    I googled for the solution and I found that I should increase the API version. I switched to 23. The compilation has been successfully, but I cannot download to the device under Ubuntu, but I can under Windows.
    If I download the application (again: the device has version 15 I had to use 23), the application crash immediately: "Unfortunately, <project> has stopped".

    Can anybody help me? I don't know how should I start to fix the issue. I don't know too much about the android development, etc.

    p.s.: If I tried out my project on emulator with API version 15, everything went fine.

    Regards,
    Norbert

    1 Reply Last reply
    0
    • M Offline
      M Offline
      moravas
      wrote on 27 Sept 2015, 18:23 last edited by
      #2

      Hi Folks,

      as I see, there is no answer for my question. In other worlds, how should I start to debug the root cause of my applications crash?
      E.g.: API version number, Qt versions, CPU architecture, start the application from debugger on the device, etc.

      Regards,
      Norbert

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 27 Sept 2015, 19:00 last edited by
        #3

        Hi,

        One thing you can do is to join the #necessitas IRC channel, you'll find there the developers/maintainers of the Android port of Qt

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        1/3

        24 Sept 2015, 17:18

        • 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