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 for Android error during deployment
Forum Update on Monday, May 27th 2025

Qt for Android error during deployment

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

    I am trying to run a "Hello World" app in qml on an Android TV. I always getting this error when I try to run the project (on simulator)
    The kit Android for x86 (GCC 4.9, Qt 5.7.1) has configuration issues which might be the root cause for this problem.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you build Qt for Android for x86 yourself ?
      Are you running the emulator with a x86 image ?

      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
      • D Offline
        D Offline
        daljit97
        wrote on last edited by
        #3

        No, I installed Qt for Android using the Maintenance Tool. I am using an Android Virtual device (downloaded with Android Studio).

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then can you check the what exact configuration issue Qt Creator complains about ?

          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
          • D Offline
            D Offline
            daljit97
            wrote on last edited by
            #5

            Ok I solved this problem by uninstalling Qt and reinstalling the entire Qt SDK. Now I have another one: when I launch the application on the simulator, there is only a blank screen. I have tried other application from the official examples, the one written in pure C++ work. But any application that involves QML just displays a blank white window. The application output says the following:
            Starting remote process.I art : Not late-enabling -Xcheck:jni (already on) W System : ClassLoader referenced unknown path: W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: is missing DT_SONAME will use basename as a replacement: "libqtforandroid.so" I Qt : qt start W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/bearer/libqandroidbearer.so: is missing DT_SONAME will use basename as a replacement: "libqandroidbearer.so" D : (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment. D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true D : HostConnection::get() New Host Connection established 0xadf48bc0, tid 3197 W : Process pipe failed D : HostConnection::get() New Host Connection established 0xadf48dc0, tid 3214 I OpenGLRenderer: Initialized EGL, version 1.4 E EGL_emulation: tid 3214: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH) W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xae913560, error=EGL_BAD_MATCH W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: is missing DT_SONAME will use basename as a replacement: "libqtquick2plugin.so" W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls/libqtquickcontrolsplugin.so: is missing DT_SONAME will use basename as a replacement: "libqtquickcontrolsplugin.so" W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: is missing DT_SONAME will use basename as a replacement: "libwindowplugin.so" W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Layouts/libqquicklayoutsplugin.so: is missing DT_SONAME will use basename as a replacement: "libqquicklayoutsplugin.so" W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls/Styles/Android/libqtquickcontrolsandroidstyleplugin.so: is missing DT_SONAME will use basename as a replacement: "libqtquickcontrolsandroidstyleplugin.so"

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Did you enable 3D acceleration ?

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

              D 1 Reply Last reply
              0
              • SGaistS SGaist

                Did you enable 3D acceleration ?

                D Offline
                D Offline
                daljit97
                wrote on last edited by
                #7

                @SGaist said in Qt for Android error during deployment:

                Did you enable 3D acceleration ?

                Alright so what I did is I uninstalled Qt from my computer and installed it again. Now I am able to run and launch the application. However there is a new problem: it shows a blank screen. This happens only if my application involves QML, a pure C++ application runs just fine.

                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