Android BLE scanner example crashed
Unsolved
Mobile and Embedded
-
I am new to developing Qt on Android. I was trying to deploy Ble Scanner example to motorola One with Android 10. I am using fresh Qt 6.2 on Ubuntu Linux 20.04.
After deployment to phone, application crashed, without showing any window on phone.
owenergyscanne: Late-enabling -Xcheck:jni E owenergyscanne: Unknown bits set in runtime_flags: 0x8000 W System : ClassLoader referenced unknown path: D Qt JAVA : Class org.qtproject.qt.android.bluetooth.QtBluetoothBroadcastReceiver does not implement setActivity method E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread E AndroidRuntime: Process: org.qtproject.example.lowenergyscanner, PID: 30038 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/org.qtproject.example.lowenergyscanner-4TLjPNxgHlhhsAOFSQ2GFQ==/lib/arm64/libc++_shared.so" has bad ELF magic: 00000000 E AndroidRuntime: at java.lang.Runtime.load0(Runtime.java:938) E AndroidRuntime: at java.lang.System.load(System.java:1631) E AndroidRuntime: at org.qtproject.qt.android.QtNative$2.run(QtNative.java:440) E AndroidRuntime: at org.qtproject.qt.android.QtThread$2.run(QtThread.java:87) E AndroidRuntime: at org.qtproject.qt.android.QtThread$1.run(QtThread.java:61) E AndroidRuntime: at java.lang.Thread.run(Thread.java:919) I Process : Sending signal. PID: 30038 SIG: 9 13:38:02: "org.qtproject.example.lowenergyscanner" died.
Do you have any suggestions what could be wrong ?
-
@martinknocik
The problem is caused by Virtualbox, i have installed QtCreator inside virtual Lubuntu. Barebone is Linux Mint. If place Ble example file inside virtualbox guest os directory, everything works. But if place BLE xxample inside shared folder, BLE example is crashing/restarting. Maybe some problem with FIle permissions ?