On certain Android devices (a cheap TCL and an s10...
# compose
g
On certain Android devices (a cheap TCL and an s10+), Compose Resources seems to be unable to find files. I tried to create a minimal reproduction repo using the KMP project creator, but it seems to work on both devices even after I bump all the versions to match my projects (e.g. kotlin 1.9.22, compose 1.6.0-beta01). Has anyone else run into this?
The exception it throws is:
Copy code
Caused by: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: values/strings.xml
I updated everything to be in the
composeResources
source set and most phones are working. It’s just a few that crash immediately on app launch.
In case anyone runs into this, it turned out being a
sharedUserId
set in the Android manifest! I’ll be honest and say I don’t 100% know what
sharedUserId
does under the hood other than allow multiple apps to share processes and resources, but it makes sense that changing could affect resource access. We initially needed one because we were replacing an existing app that used one, but luckily that’s no longer the plan and I could remove it. Might be something Jetbrains looks into? I’ll see if I can make a minimal reproduction repo and make an issue.
If anyone comes across this, this is the issue I made a few weeks ago: https://github.com/JetBrains/compose-multiplatform/issues/4742