apksigner command failed
-
I'm trying to run a Release build on an Android device from Qt Creator.
The build succeeds if signing is disabled, but deploying to a device fails, as expected.If I enable "Sign package" In Build Settings-Build Steps-Build Android APK then the build fails as shown below. I am suspicious of the fact that the failure is reported before the verification finishes.
How can I either fix this, or work around the issue?
...
33673095 lib/arm64-v8a/libqml_QtQuick_Controls_FluentWinUI3_qtquickcontrols2fluentwinui3styleplugin_arm64-v8a.so (OK - compressed)
34717866 lib/arm64-v8a/libqml_QtQuick_Controls_Fusion_impl_qtquickcontrols2fusionstyleimplplugin_arm64-v8a.so (OK - compressed)
34722594 lib/arm64-v8a/libqml_QtQuick_Controls_Fusion_qtquickcontrols2fusionstyleplugin_arm64-v8a.so (OK - compressed)
34727689 lib/arm64-v8a/libqml_QtQuick_Controls_Imagine_impl_qtquickcontrols2imaginestyleimplplugin_arm64-v8a.so (OK - compressed)
34732410 lib/arm64-v8a/libqml_QtQuick_Controls_Imagine_qtquickcontrols2imaginestyleplugin_arm64-v8a.so (OK - compressed)
Missing input APK
apksigner command failed.
34737514 lib/arm64-v8a/libqml_QtQuick_Controls_Material_impl_qtquickcontrols2materialstyleimplplugin_arm64-v8a.so (OK - compressed)
34742239 lib/arm64-v8a/libqml_QtQuick_Controls_Material_qtquickcontrols2materialstyleplugin_arm64-v8a.so (OK - compressed)
34747394 lib/arm64-v8a/libqml_QtQuick_Controls_Universal_impl_qtquickcontrols2universalstyleimplplugin_arm64-v8a.so (OK - compressed)
34752137 lib/arm64-v8a/libqml_QtQuick_Controls_Universal_qtquickcontrols2universalstyleplugin_arm64-v8a.so (OK - compressed)
34757265 lib/arm64-v8a/libqml_QtQuick_Controls_impl_qtquickcontrols2implplugin_arm64-v8a.so (OK - compressed)
34762025 lib/arm64-v8a/libqml_QtQuick_Controls_qtquickcontrols2plugin_arm64-v8a.so (OK - compressed)
34773017 lib/arm64-v8a/libqml_QtQuick_Dialogs_qtquickdialogsplugin_arm64-v8a.so (OK - compressed)
34777762 lib/arm64-v8a/libqml_QtQuick_Dialogs_quickimpl_qtquickdialogs2quickimplplugin_arm64-v8a.so (OK - compressed)
34782511 lib/arm64-v8a/libqml_QtQuick_Effects_effectsplugin_arm64-v8a.so (OK - compressed)
34787223 lib/arm64-v8a/libqml_QtQuick_Layouts_qquicklayoutsplugin_arm64-v8a.so (OK - compressed)
34791942 lib/arm64-v8a/libqml_QtQuick_Shapes_qmlshapesplugin_arm64-v8a.so (OK - compressed)
34796736 lib/arm64-v8a/libqml_QtQuick_Templates_qtquicktemplates2plugin_arm64-v8a.so (OK - compressed)
34801748 lib/arm64-v8a/libqml_QtQuick_Window_quickwindowplugin_arm64-v8a.so (OK - compressed)
34806997 lib/arm64-v8a/libqml_QtQuick_qtquick2plugin_arm64-v8a.so (OK - compressed)
34811779 lib/arm64-v8a/libqml_QtWebView_qtwebviewquickplugin_arm64-v8a.so (OK - compressed)
34816513 lib/arm64-v8a/libqml_Qt_labs_folderlistmodel_qmlfolderlistmodelplugin_arm64-v8a.so (OK - compressed)
34821200 lib/arm64-v8a/libqml_Qt_labs_platform_labsplatformplugin_arm64-v8a.so (OK - compressed)
34825855 lib/arm64-v8a/libqml_Qt_labs_settings_qmlsettingsplugin_arm64-v8a.so (OK - compressed)
34830467 lib/arm64-v8a/libssl_3.so (OK - compressed)
35074415 lib/arm64-v8a/libswresample.so (OK - compressed)
35116529 lib/arm64-v8a/libswscale.so (OK - compressed)
35399300 assets/android_rcc_bundle.rcc (OK)
35415361 AndroidManifest.xml (OK - compressed)
35417768 res/2H.png (OK)
35418788 res/8p.png (OK)
35421245 res/Dt.xml (OK - compressed)
35421484 res/yj.png (OK)
35423100 resources.arsc (OK)
Verification succesful
APK already aligned, copying it for signing.
12:00:38: The command "C:\Qt\6.8.3\mingw_64\bin\androiddeployqt.exe --input path/to/Qt_6_8_3_for_Android_arm64_v8a-Release/android-ErgRace-deployment-settings.json --output path/to/Qt_6_8_3_for_Android_arm64_v8a-Release/android-build-MyApp --android-platform android-34 --jdk "C:/Program Files/Eclipse Adoptium/jdk-17.0.14.7-hotspot" --verbose --gradle --release --sign path/to/my.keystore myalias --storepass "****" --no-gdbserver" terminated with exit code 15.