Bug 507253

Summary: Android nightly crashes on startup
Product: [Applications] krita Reporter: Freya Lupen <penguinflyer2222>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Android   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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