Build android project is error, No Android architecture (ABI) is set by the project.
-
my qtcreator kits have a warning .
device type is not supported by qt version.
As the picture above shows, this kit has a yellow warning, when I create a new project, if I use this kit,and I want to run. I will get this error.
No Android architecture (ABI) is set by the project.
Error while building/deploying project Test (kit: Android)
When executing step "Deploy to Android device"If I use this it,and I want to build,I wall get this error.
/usr/bin/uic: error while loading shared libraries: libicui18n.so.63: cannot open shared object file: No such file or directory
make: *** [Makefile:530: ui_mainwindow.h] Error 127
02:18:59: process "/usr/bin/make" exit,exit code 2 。
Error while building/deploying project Test (kit: Android)
The kit Android has configuration issues which might be the root cause for this problem.
When executing step "Make"If I use QT 5.15 build,I will get a error:
Cannot set up "Build Android APK", not building an APK.
Error while building/deploying project SS (kit: Android)
The kit Android has configuration issues which might be the root cause for this problem.
When executing step "Build Android APK"midify Project->Build Android APK->SDK from API 31 to API 25,invalid.
midify Kits->Manual->Android(this kit) -> QT VERSION from 5.15 to 5.12,invalid.
if modify QT VERSION from 5.15 or 5.12 to None. warningdevice type is not supported by qt version.
disappears,and error info The error message becomesNo Qt version configured.
Error while building/deploying project Test (kit: Android)
When executing step "qmake"Use a physical phone instead of a virtual one,invalid.
The mobile phone logo in the lower left corner, the yellow part will turn green after my mobile phone is turned on, but the error message remains unchangedmy creator install process:
sudo pacman -S qt5-base qt5-doc qtcreator
my jdk version is 1.8
my sdk ndk was obtained through automatic download of qtcreator,this is my sdk ndk info
my qtcreator is 8.0.2 ,based on qt 6.4.1,this is about info.
Am I missing some packages or version incompatible?
English is not my native language, please forgive me if there is any wrong grammar, if you can give me some hints about this problem, I will be very grateful.
-
jdk version 8 may be too low. Try jdk 11. Set-up environment variables for android build. Install qt libs for Android.
https://doc.qt.io/qt-6/android-getting-started.html
https://doc.qt.io/qt-6/cmake-variables-qtcore.html -
@JoeCFD
When I try modifyDevice -> Android ->JDK location
to modify jdk version, if I use jdk 8 or 11 or 19,is no error,butKits->manual->Android
warning remainsdevice type is not supported by qt version.
,If I use jdk17 onDevice -> Android ->JDK location
I will get a errorAndroid Setting have error : JDK path exits and is writable
,and warning remainsdevice type is not supported by qt version.
.
And I try add two variable inProject ->Build Environment
Problem persists and has not changed.
My SDK NDK both install by QT,And my abd and gdb can work,So I didn't try to install abd and gdb dependencies,such aslibstdc++6 libncurses5 libsdl1.2debian
,and my arch haven't this package
And I tryexport ANDROID_NDK_ROOT
,but it doesn't seem to work