beeware / briefcase

Tools to support converting a Python project into a standalone native application.
https://briefcase.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
2.61k stars 366 forks source link

Installing .apk fails on device #1698

Closed AndiLeni closed 6 months ago

AndiLeni commented 6 months ago

Describe the bug

Hello,

I tried compiling my app to a release .apk file with briefcase package android -p apk. When I try to install this apk on my android 12 phone, the package installation fails with App Not Installed as Package Appears to Be Invalid

Steps to reproduce

-/-

Expected behavior

The generated apk should be distributable.

Screenshots

No response

Environment

Logs

None visible on phone.

Additional context

No response

freakboy3742 commented 6 months ago

Thanks for the report - the issue is code signing. The APK (or AAB) produced by briefcase package android isn't signed; you need to manually sign the binary to use it on your device.

The Android docs don't explicitly mention this requirement - I've opened #1703 to address this gap in the documentation.

AndiLeni commented 6 months ago

Oh I see. Thanks for the quick response!