-
Notifications
You must be signed in to change notification settings - Fork 12
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
Resource image not found on platforms #39
Comments
Path to your image looks like |
Yes, it does. Also, string resources are working fine on all platforms. |
I will soon make an open-source repository so you may reproduce the problem. @Skeptick |
You can clone this branch to reproduce the problem. |
This issue isn't related to Libres. // desktop/build.gradle.kts
compose.desktop {
application {
mainClass = "com.example.demo.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "desktop"
packageVersion = "1.0.0"
}
}
} And run via |
Thanks, will test this out later. I may do a PR about this though to update docs and clarify some things about resource management. |
I placed my resources under commonMain besides the
kotlin
directory, inside thelibres
folder as stated in theREADME.md
.When trying to run my Compose Multiplatform JVM based desktop app, I get this exception when trying to get the painterResource for my Image composable:
Similar issue happens when running on JS based platform:
When requesting the
flower_image.jpg
, the GET request returns with a404
(not found) status.Platforms affected (Android works fine):
Versions:
I suspect, that resources' path has been changed recently, either with newer Kotlin or Compose Multiplatform versions.
The text was updated successfully, but these errors were encountered: