Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
Qt Creator 4.7.0
-
None
Description
Use a recent build of Qt 5.12 (my own checkout is from 19/7/18) to reproduce. It seems the target directory for the apk has changed. I am using qtconnectivity/tests/bttestui as example app. I get the following error message
{quote}
adb: failed to stat /home/abc/dev/qt/qt5devandroid/qtconnectivity/tests/bttestui/android-build//build/outputs/apk/android-build-debug.apk: No such file or directory
Installing to device failed!
Installing Android package to device.
Running command "/home/abc/java/android-sdk-linux/platform-tools/adb -s 00b10979ab913865 install -r /home/abc/dev/qt/qt5devandroid/qtconnectivity/tests/bttestui/android-build//build/outputs/apk/android-build-debug.apk"
10:35:16: The process "/home/abc/dev/qt/qt5devandroid/qtbase/bin/androiddeployqt" exited with code 16.
{quote}
The apk can be found in tests/bttestui/android-build/build/outputs/apk/debug/android-build-debug.apk and manually copying it one directory up fixes the problem.
Although I have not tested this I assume release builds may have a similar issues with a different path.
Attachments
Issue Links
- depends on
-
QTBUG-70003 Unable to deploy an APK to device due to "adb: error: cannot stat ..."
- Closed
- duplicates
-
QTBUG-69755 Wrong apk path when using Gradle 4.1
- Closed