icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.08k stars 121 forks source link

Unresolved Reference: 'string' #744

Closed griffinsorrentino closed 2 months ago

griffinsorrentino commented 3 months ago

When using compose multiplatform 1.7.0-alpha01 an error occurs when trying to launch the Android app

e: file:///.../composeApp/build/generated/kotlin/generateMRandroidMain/com/example/com/Res.kt:17:75 Unresolved reference 'my_string'.

Bumping compose multiplatform back down to 1.6.11 fixes the issue, but this issue will likely persist with the upcoming 1.7.0 release

Minimal reproducer: https://github.com/griffinsorrentino/moko-resources-bug

Elelan commented 3 months ago

Getting the same error after upgrading compose multiplatform to 1.7.0-alpha01. Also using KSP2.

zacharee commented 2 months ago

It works again with 1.7.0-dev1721 and later

Alex009 commented 2 months ago

@zacharee cool!

griffinsorrentino commented 2 months ago

Confirmed as fixed with 1.7.0-alpha02