Ошибка при запуске APK-сборки QGroundControl в Android 7.1.2. ⇐ Android
-
Гость
Ошибка при запуске APK-сборки QGroundControl в Android 7.1.2.
I built QGroundControl V4.2.8 for Android devices and it works well in Android 12 devices (x64 arm). But I want to run it in older devices with x86/x64 arm processor and android 7.1.2.
Android kit : Clang Multi-Abi
Qt version 5.15.2
Qt Creator 12.0.2
Build device : Windows
jdk version : 11
Compilers:
C -- > Android Clang / C / arm / NDK 21.3.6528147 C++ -- > Android Clang / C ++/ arm / NDK 21.3.6528147 Build mode : release (signed APK)
In android.pri file:
ANDROID_MIN_SDK_VERSION = "21" ANDROID_TARGET_SDK_VERSION="25" android build-tools version : 28.0.3
android build platform SDK : android-29
First ) Built APK not installing in 32 bit devices or emulators.
second ) in 64 bit devices/emulators with older android versions, it installed but has error in running. APK file in QGC release page works well in all devices/emulators that I tested.
This is logcat for running that in 64 bit emulator Nox player with 7.1.2
android version:
03-03 22:13:08.173 1476 1670 D gralloc_nox: gralloc_alloc: Creating ashmem region of size 4096 03-03 22:13:08.210 4663 4689 D EGL_emulation: eglMakeCurrent: 0x7f93728fa440: ver 3 2 (tinfo 0x7f93903a28c0) (first time) 03-03 22:13:08.213 1476 1520 D gralloc_nox: gralloc_alloc: Creating ashmem region of size 4096 03-03 22:13:08.253 4663 4683 I libQGroundControl_arm64-v8a.so: qt.qpa.plugin: Could not load the Qt platform plugin "android" in "" even though it was found. 03-03 22:13:08.254 4663 4683 F libQGroundControl_arm64-v8a.so: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 03-03 22:13:08.254 4663 4683 F libQGroundControl_arm64-v8a.so: 03-03 22:13:08.254 4663 4683 F libQGroundControl_arm64-v8a.so: Available platform plugins are: android. 03-03 22:13:08.254 4663 4683 F libQGroundControl_arm64-v8a.so: --------- beginning of crash 03-03 22:13:08.254 4663 4683 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 4683 (qtMainLoopThrea) 03-03 22:13:08.254 1344 1344 W : debuggerd: handling request: pid=4663 uid=10046 gid=10046 tid=4683 03-03 22:13:08.258 4693 4693 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 03-03 22:13:08.258 4693 4693 F DEBUG : Build fingerprint: 'samsung/dream2qltezh/dream2qltechn:7.1/N2G48H/G9550ZHU1AQEE:user/release-keys' 03-03 22:13:08.258 4693 4693 F DEBUG : Revision: '12' 03-03 22:13:08.258 4693 4693 F DEBUG : ABI: 'x86_64' 03-03 22:13:08.258 4693 4693 F DEBUG : pid: 4663, tid: 4683, name: qtMainLoopThrea >>> org.mavlink.qgroundcontrol >>>> START com.android.internal.os.RuntimeInit uid 0
Источник: https://stackoverflow.com/questions/780 ... roid-7-1-2
I built QGroundControl V4.2.8 for Android devices and it works well in Android 12 devices (x64 arm). But I want to run it in older devices with x86/x64 arm processor and android 7.1.2.
Android kit : Clang Multi-Abi
Qt version 5.15.2
Qt Creator 12.0.2
Build device : Windows
jdk version : 11
Compilers:
C -- > Android Clang / C / arm / NDK 21.3.6528147 C++ -- > Android Clang / C ++/ arm / NDK 21.3.6528147 Build mode : release (signed APK)
In android.pri file:
ANDROID_MIN_SDK_VERSION = "21" ANDROID_TARGET_SDK_VERSION="25" android build-tools version : 28.0.3
android build platform SDK : android-29
First ) Built APK not installing in 32 bit devices or emulators.
second ) in 64 bit devices/emulators with older android versions, it installed but has error in running. APK file in QGC release page works well in all devices/emulators that I tested.
This is logcat for running that in 64 bit emulator Nox player with 7.1.2
android version:
03-03 22:13:08.173 1476 1670 D gralloc_nox: gralloc_alloc: Creating ashmem region of size 4096 03-03 22:13:08.210 4663 4689 D EGL_emulation: eglMakeCurrent: 0x7f93728fa440: ver 3 2 (tinfo 0x7f93903a28c0) (first time) 03-03 22:13:08.213 1476 1520 D gralloc_nox: gralloc_alloc: Creating ashmem region of size 4096 03-03 22:13:08.253 4663 4683 I libQGroundControl_arm64-v8a.so: qt.qpa.plugin: Could not load the Qt platform plugin "android" in "" even though it was found. 03-03 22:13:08.254 4663 4683 F libQGroundControl_arm64-v8a.so: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 03-03 22:13:08.254 4663 4683 F libQGroundControl_arm64-v8a.so: 03-03 22:13:08.254 4663 4683 F libQGroundControl_arm64-v8a.so: Available platform plugins are: android. 03-03 22:13:08.254 4663 4683 F libQGroundControl_arm64-v8a.so: --------- beginning of crash 03-03 22:13:08.254 4663 4683 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 4683 (qtMainLoopThrea) 03-03 22:13:08.254 1344 1344 W : debuggerd: handling request: pid=4663 uid=10046 gid=10046 tid=4683 03-03 22:13:08.258 4693 4693 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 03-03 22:13:08.258 4693 4693 F DEBUG : Build fingerprint: 'samsung/dream2qltezh/dream2qltechn:7.1/N2G48H/G9550ZHU1AQEE:user/release-keys' 03-03 22:13:08.258 4693 4693 F DEBUG : Revision: '12' 03-03 22:13:08.258 4693 4693 F DEBUG : ABI: 'x86_64' 03-03 22:13:08.258 4693 4693 F DEBUG : pid: 4663, tid: 4683, name: qtMainLoopThrea >>> org.mavlink.qgroundcontrol >>>> START com.android.internal.os.RuntimeInit uid 0
Источник: https://stackoverflow.com/questions/780 ... roid-7-1-2
Мобильная версия