Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apk cannot be installed under Android #814

Open
andimik opened this issue Sep 3, 2024 · 11 comments
Open

apk cannot be installed under Android #814

andimik opened this issue Sep 3, 2024 · 11 comments
Labels

Comments

@andimik
Copy link
Contributor

andimik commented Sep 3, 2024

The Android version dated 20240830 gives the following error on Android 13 and also Android 9

grafik

First reported in #804 (comment) by user @rkarikari

@AlbrechtL
Copy link
Owner

Does it also happens when you try the APKs from https://github.com/AlbrechtL/welle.io/actions/runs/10682830350?

@rkarikari
Copy link

rkarikari commented Sep 3, 2024

yes, I get the very same error when attempting to install from the above link.

@AlbrechtL AlbrechtL added the bug label Sep 3, 2024
@AlbrechtL
Copy link
Owner

Strange - something is going wrong during building ...

@andimik
Copy link
Contributor Author

andimik commented Sep 4, 2024

Same here, the apk from the above link doesn't work neither.

@tenzap
Copy link
Contributor

tenzap commented Sep 29, 2024

IIRC, you must sign the package (add a step or the required variable at configure time for this in android.yml github actions job), that's probably why it fails.

https://doc.qt.io/qt-6.5/cmake-variable-qt-android-sign-apk.html
Maybe also
https://doc-snapshots.qt.io/qt6-6.7/cmake-variable-qt-android-deployment-type.html

Which requires you to update the version of Qt-Android used to build in android.yml

When set to Release, the --release flag is passed to the androiddeployqt tool, regardless of the application build type. When set to another value, the --release flag is never passed to the tool, which effectively disables release package signing even in Release or RelWithDebInfo builds. When not set, the default behavior is to use release package signing in build types other than Debug.

@AlbrechtL
Copy link
Owner

That could be the reason. @tenzap As you are the author of the Android Action pipeline can you update it and add the certificate process? Afterwards I can add my certificate.

@tenzap
Copy link
Contributor

tenzap commented Oct 3, 2024

Sorry I'm not in that business
Anymore, good luck.

@kostyamat
Copy link

Hi, will this problem be solved?
And could you provide a link to the latest working APK?

@tutacat
Copy link

tutacat commented Oct 19, 2024

https://github.com/AlbrechtL/welle.io/actions/workflows/android.yml is the CI workflow that builds the android app, just select the most recent run and download the desired artifact (either any/all arch, or aarch64(arm64)-only).

It is actually being signed by the workflow now, so that can be included in releases binaries, and this issue is solved.

@rkarikari
Copy link

https://github.com/AlbrechtL/welle.io/actions/runs/11262592193/artifacts/2037144642

Tested .... and it installed and works great!
Thanks

https://github.com/AlbrechtL/welle.io/actions/workflows/android.yml is the CI workflow that builds the android app, just select the most recent run and download the desired artifact (either any/all arch, or aarch64(arm64)-only).

It is actually being signed by the workflow now, so that can be included in releases binaries, and this issue is solved.

@andimik
Copy link
Contributor Author

andimik commented Oct 25, 2024

Hint, the link only works when you are logged in in your browser (= I am using an app for github and all links are opened with a separate browser). Otherwise you will get a 404 error from github ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants