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. How to compile for Android in Ubuntu?
Forum Updated to NodeBB v4.3 + New Features

How to compile for Android in Ubuntu?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 578 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
    Mihaill
    wrote on last edited by
    #1

    Hi!
    How to compile for Android in Ubuntu?
    I've set everything up, but the apk file doesn't compile.
    Qt get this error:

    Generating Android Package
    Input file: /home/profitpoint/projects/build-testUi-Android_armeabi_v7a_Clang_Qt_5_13_1_for_Android_ARMv7-Debug/android-libtestUi.so-deployment-settings.json
    Output directory: /home/profitpoint/projects/build-testUi-Android_armeabi_v7a_Clang_Qt_5_13_1_for_Android_ARMv7-Debug/android-build/
    Application binary: /home/profitpoint/projects/build-testUi-Android_armeabi_v7a_Clang_Qt_5_13_1_for_Android_ARMv7-Debug/libtestUi.so
    Android build platform: android-29
    Install to device: No
    Warning: QML import could not be resolved in any of the import paths: QtQuick.VirtualKeyboard
    Warning: QML import could not be resolved in any of the import paths: QtQuick.VirtualKeyboard.Styles
    Warning: QML import could not be resolved in any of the import paths: QtQuick.VirtualKeyboard.Settings
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl

    3.png

    T 1 Reply Last reply
    0
    • M Mihaill

      Hi!
      How to compile for Android in Ubuntu?
      I've set everything up, but the apk file doesn't compile.
      Qt get this error:

      Generating Android Package
      Input file: /home/profitpoint/projects/build-testUi-Android_armeabi_v7a_Clang_Qt_5_13_1_for_Android_ARMv7-Debug/android-libtestUi.so-deployment-settings.json
      Output directory: /home/profitpoint/projects/build-testUi-Android_armeabi_v7a_Clang_Qt_5_13_1_for_Android_ARMv7-Debug/android-build/
      Application binary: /home/profitpoint/projects/build-testUi-Android_armeabi_v7a_Clang_Qt_5_13_1_for_Android_ARMv7-Debug/libtestUi.so
      Android build platform: android-29
      Install to device: No
      Warning: QML import could not be resolved in any of the import paths: QtQuick.VirtualKeyboard
      Warning: QML import could not be resolved in any of the import paths: QtQuick.VirtualKeyboard.Styles
      Warning: QML import could not be resolved in any of the import paths: QtQuick.VirtualKeyboard.Settings
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl

      3.png

      T Offline
      T Offline
      Tom_H
      wrote on last edited by
      #2

      @Mihaill

      Nothing in your post indicates the build failed. Are you sure it did? Try deploying to an AVD.

      I build on Ubuntu and you don't have to do anything special to make it work. Here's what I do:

      1. Install Android Studio
      2. Install the Android SDK and NDK from Android Studio
      3. Create an AVD from Android Studio
      4. Install Qt
      5. Test your install by building one of the Android examples in Qt Creator (I suggest Gallery)

      PROTIP: If you plan on using the rotation sensor, stick with Qt 5.12.3, as it is broken in 5.12.4+
      QTBUG-77628

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mihaill
        wrote on last edited by
        #3

        I install Android Studio, but un ubuntu I do not understand how instaled NDK from Android Studio.

        T 1 Reply Last reply
        0
        • M Mihaill

          I install Android Studio, but un ubuntu I do not understand how instaled NDK from Android Studio.

          T Offline
          T Offline
          Tom_H
          wrote on last edited by Tom_H
          #4

          @Mihaill
          Screenshot from 2019-11-21 13-32-08.png

          1 Reply Last reply
          1

          • Login

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