Bug 507253 - Android nightly crashes on startup
Summary: Android nightly crashes on startup
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: * Unknown (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: Android Other
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-20 03:29 UTC by Freya Lupen
Modified: 2025-07-25 17:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freya Lupen 2025-07-20 03:29:44 UTC
5.3.x is crashing on startup on Android, libplugins_platforms_qtforandroid_arm64-v8a.so is missing from the apk.
> Can't find '/data/app/~~NSlnm9bSyUWM7cQe6wrE-A==/org.krita.next-8lFMFQXotU7-_3vlgWxpUA==/lib/arm64/libplugins_platforms_qtforandroid_arm64-v8a.so'
> No implementation found for int[] org.qtproject.qt5.android.ExtractStyle.extractNativeChunkInfo20(long) (tried Java_org_qtproject_qt5_android_ExtractStyle_extractNativeChunkInfo20 and Java_org_qtproject_qt5_android_ExtractStyle_extractNativeChunkInfo20__J) - is the library loaded, e.g. System.loadLibrary?

Version: 5.3.0-prealpha-f71d8212
The last working build I have is from May (commit 455a0f49 from MR!2346), unsure when this issue started.
Comment 1 Freya Lupen 2025-07-25 17:09:46 UTC
Git commit 739f1e00f71dd5a0570dc3056d46572e4c1e7c08 by Freya Lupen.
Committed on 25/07/2025 at 17:09.
Pushed by freyalupen into branch 'master'.

Fix packaging Android platform plugin

Somehow the addition of a platforms folder prevented the Android
platform plugin from being copied to the krita_build_apk libs folder,
so it didn't end up in the APK, causing Krita to crash on startup.
So just skip the plugins/platforms/ folder on Android.

M  +4    -1    plugins/CMakeLists.txt

https://invent.kde.org/graphics/krita/-/commit/739f1e00f71dd5a0570dc3056d46572e4c1e7c08