Cannot find application binary - Android build
-
wrote on 15 Jan 2022, 09:15 last edited by
Hi,
I have upgraded my application to QT6 but there must be some leftovers from the previous version or something which I can't identify. I have selected the new kit Android Qt 6.2.2 Clang arm64-v8a to build for an Android device but I am getting this error:Cannot find application binary in build dir /.../build-Mind-Android_Qt_6_2_2_Clang_arm64_v8a-Release/android-build//libs/armeabi-v7a/libMind_armeabi-v7a.so.
Which seems wrong since it's mixing v7 and v8 together. (Happens with or without AAB build). What I actually do have in the directory is:
.../build-Mind-Android_Qt_6_2_2_Clang_arm64_v8a-Release/android-build/libs/arm64-v8a/libMind_arm64-v8a.so
When switching to v7 I am getting:
Cannot find application binary in build dir /.../build-Mind-Android_Qt_6_2_2_Clang_armeabi_v7a-Debug/android-build//libs/arm64-v8a/libMind_arm64-v8a.so.
Which is again wrong :D. I can't find where I can switch the names to match the versions. Could anyone please at least tell me where to look for the solution? Thanks!
-
wrote on 30 Jan 2022, 09:50 last edited by
So after some research I have found the reason.
I hadANDROID_ABIS = armeabi-v7a arm64-v8a
in my project, probably for the AAB build in the previous QT version. Then both the versions were looked for during the compilation. This might also help someone with similar problem.
-
wrote on 16 Jan 2022, 08:35 last edited by
Happens also with x86 Android build:
Cannot find application binary in build dir /.../build-Mind-Android_Qt_6_2_2_Clang_x86-Debug/android-build//libs/armeabi-v7a/libMind_armeabi-v7a.so.
-
wrote on 30 Jan 2022, 09:50 last edited by
So after some research I have found the reason.
I hadANDROID_ABIS = armeabi-v7a arm64-v8a
in my project, probably for the AAB build in the previous QT version. Then both the versions were looked for during the compilation. This might also help someone with similar problem.
-
wrote on 19 Mar 2023, 08:25 last edited by
I have the same problem
:-1: error: Cannot find application binary in build dir .../build-ICS_MedicalDemo-Android_Qt_5_15_13_Clang_Multi_Abi-Debug/android-build//libs/x86_64/libICS_MedicalDemo_x86_64.so. What could be the issue in this case ? I have already set ANDROID_ABI to correct x86_64 setting. 