Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73909

[Android: ARMv7] Can't start Android Service

    XMLWordPrintable

Details

    • Android

    Description

      Attached sample project can start Android Service by Android for arm64-v8a (Clang Qt 5.12.0 for Android ARM64-v8a).

      But can't start by Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7) with same sample.

       

      Console output by Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7)

      W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: unused DT entry: type 0x1d arg 0x4d1W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: unused DT entry: type 0x1d arg 0x4d1W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: unsupported flags DT_FLAGS_1=0x80W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so: unused DT entry: type 0x1d arg 0x3644W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so: unsupported flags DT_FLAGS_1=0x80W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.so: unused DT entry: type 0x1d arg 0x1775W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.so: unsupported flags DT_FLAGS_1=0x80W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so: unused DT entry: type 0x1d arg 0xa979W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so: unsupported flags DT_FLAGS_1=0x80W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: unused DT entry: type 0x1d arg 0x4c0W linker  : /data/data/org.qtproject.example.SampleService/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: unsupported flags DT_FLAGS_1=0x80D libSampleService.so: Activity Thread :  QThread(0xaafa4518, name = "QtMainLoopThread")D libSampleService.so: Starting Android serviceW System.err: java.lang.ClassNotFoundException: Didn't find class "com.service.sample.TestService" on path: DexPathList[[],nativeLibraryDirectories=[/vendor/lib, /system/lib]]W System.err:  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)W System.err:  at java.lang.ClassLoader.loadClass(ClassLoader.java:511)W System.err:  at java.lang.ClassLoader.loadClass(ClassLoader.java:469)W System.err:  at org.qtproject.qt5.android.QtNative.startQtApplication(Native Method)W System.err:  at org.qtproject.qt5.android.QtNative$6.run(QtNative.java:359)W System.err:  at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)W System.err:  at java.lang.Thread.run(Thread.java:818)W System.err:  Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.service.sample.TestService" on path: DexPathList[[zip file "/data/app/org.qtproject.example.SampleService-2/base.apk"],nativeLibraryDirectories=[/data/app/org.qtproject.example.SampleService-2/lib/arm, /data/app/org.qtproject.example.SampleService-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]W System.err:  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)W System.err:  at java.lang.ClassLoader.loadClass(ClassLoader.java:511)W System.err:  at java.lang.ClassLoader.loadClass(ClassLoader.java:504)W System.err:  ... 5 moreW System.err:  Suppressed: java.lang.ClassNotFoundException: com.service.sample.TestServiceW System.err:  at java.lang.Class.classForName(Native Method)W System.err:  at java.lang.BootClassLoader.findClass(ClassLoader.java:781)W System.err:  at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)W System.err:  at java.lang.ClassLoader.loadClass(ClassLoader.java:504)W System.err:  ... 6 moreW System.err:  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
      

      Console output by Android for arm64-v8a (Clang Qt 5.12.0 for Android ARM64-v8a)

      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libSampleService.so: unused DT entry: type 0x1d arg 0xb1cd
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5Quick.so: unused DT entry: type 0x1d arg 0x4aca3
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5Quick.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5Qml.so: unused DT entry: type 0x1d arg 0x32695
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5Qml.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5RemoteObjects.so: unused DT entry: type 0x1d arg 0x77cf
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5RemoteObjects.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5AndroidExtras.so: unused DT entry: type 0x1d arg 0x6f27
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5AndroidExtras.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5Bluetooth.so: unused DT entry: type 0x1d arg 0x8a02
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5Bluetooth.so: unsupported flags DT_FLAGS_1=0x80
      D         : QML debugging is enabled. Only use this in a safe environment.
      V ActionMenuView: FJB updateSplitActionState parent none rote
      V ActionMenuView: FJB updateSplitActionState parent none rote
      D         : ServiceClient Start
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: unused DT entry: type 0x1d arg 0x4cc
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so: unused DT entry: type 0x1d arg 0x3608
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5QuickTemplates2.so: unused DT entry: type 0x1d arg 0x2503b
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5QuickTemplates2.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5QuickControls2.so: unused DT entry: type 0x1d arg 0x74dd
      W linker  : /data/app/org.qtproject.example-1/lib/arm64/libQt5QuickControls2.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.so: unused DT entry: type 0x1d arg 0x174e
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so: unused DT entry: type 0x1d arg 0xa996
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so: unsupported flags DT_FLAGS_1=0x80
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: unused DT entry: type 0x1d arg 0x4bb
      W linker  : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: unsupported flags DT_FLAGS_1=0x80
      D libSampleService.so: Activity Thread :  QThread(0x55911f9800, name = "QtMainLoopThread")
      D libSampleService.so: Starting Android service
      D TestService: startService()
      

      Attachments

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            akizawa Akihito Izawa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: