-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[1.6.0-beta01] unable to access resources #4189
Comments
Hi |
@mahramane you are supposed to re-import the project after applying the resources plugin and create the top level composeResources directory with your resources |
@Kashif-E can you please help me how can i add resources plugin? |
apply the compose plugin after the android |
fonts not loading if they are in ttf format only otf is working, what can be the reason for that? @terrakok |
also i get this error in mac |
@mahramane i have added a comment on the issue you created it will solve it for now |
@Kashif-E check your ttf fonts. it should work |
Hey @terrakok ill check this in the morning |
After updating to 1.6.0-beta1 and migrating resources getting crash in android but iOS working fine. Crash Log : |
Similar issue here. After investigating further, it seems like the build process is caching the resources after the first build, and if you add/change the TTF files on composeResources, the next builds use the previously cached resources instead of the new ones. A workaround is to clean the build files when you change these resources and rebuilding. I'm not familiar with the code that handles the resources at build time, so I won't be able to to help fixing the code, but I hope this info helps. Here's a step by step to reproduce and identify the issue:
Workaround:
|
@nicolasf what a compose version do you use? |
[versions]
kotlin = "1.9.23"
compose = "1.6.1" |
It was fixed here: c43b64d You can use |
Did a quick test with Thanks! |
I updated my project to the latest beta to use the new resources using the generated Res classes i am unable to access and resource. I have tested drawable and fonts and its not a multimodule project.
Affected Platforms.
Versions
To Reproduce
Can be reproduced in this branch https://github.com/Kashif-E/KMPMovies/tree/14-remove-seperate-android-app-and-desktop-app
Screenshots
.
The text was updated successfully, but these errors were encountered: