[Qt-creator] Weird adb failure

Christian Gagneraud chgans at gmail.com
Thu May 14 14:57:33 CEST 2020


Hi there,

I gave a shot at multiarch using Qt-5.14.
I managed to generate the APK for my app (thanks to Qbs mailing list)
I've selected arm64 and x86_64.

But then when i hit run i get:
Initializing deployment to Android device/simulator
Deploying to 150c980e8288de07
00:50:34: Running steps for project Neon Factory Tools...
00:50:34: Starting: "/home/chgans/Android/Sdk/platform-tools/adb -s
150c980e8288de07 install -r
/home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/Debug_Android__54f9cea5714846ce/TestApp.93c1d015/factory-testapp-0.0.apk"
00:50:34: The process "/home/chgans/Android/Sdk/platform-tools/adb"
exited with code 255.
00:50:34: Pulling files necessary for debugging.
00:50:34: Package deploy: Running command
"/home/chgans/Android/Sdk/platform-tools/adb -s 150c980e8288de07 pull
/system/bin/app_process
/home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/app_process".
00:50:34: Package deploy: Running command
"/home/chgans/Android/Sdk/platform-tools/adb -s 150c980e8288de07 pull
/system/bin/app_process32
/home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/app_process".
00:50:34: Package deploy: Running command
"/home/chgans/Android/Sdk/platform-tools/adb -s 150c980e8288de07 pull
/system/bin/linker
/home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/linker".
00:50:34: Package deploy: Running command
"/home/chgans/Android/Sdk/platform-tools/adb -s 150c980e8288de07 pull
/system/lib/libc.so
/home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/libc.so".
Error while building/deploying project Neon Factory Tools (kit:
Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for
Android))
When executing step "Deploy to Android device"
00:50:34: Elapsed time: 00:01.

The weird thing is that if i copy/paste the command in a terminal, adb
doesn't fails, and the APK is loaded:
/home/chgans/Android/Sdk/platform-tools/adb -s 150c980e8288de07
install -r /home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/Debug_Android__54f9cea5714846ce/TestApp.93c1d015/factory-testapp-0.0.apk
Performing Streamed Install
Success
chgans at chgans-pc:~/Projects/neon-testapp$ echo $?
0

I've tried all the commands, and they all succeed.
Any idea what could be the problem?

Thanks,
Chris


More information about the Qt-creator mailing list