-
Notifications
You must be signed in to change notification settings - Fork 122
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
Unresolved reference: string in the generated MR.kt #403
Comments
hi! |
we try to fix issue inside our plugin, but at now we not resolve this yet |
Thanks. Actually all I needed was the addition mentioned in the comment. It worked even with existing AGP 7.3.1. Thanks for the pointer! |
I think this problem still exists in the final agp 7.4.0 |
android {
sourceSets["main"].res.srcDir(File(buildDir, "generated/moko/androidMain/res"))
} |
The problem is still exist with 7.4.1 :( |
will be released in 0.21.0 |
I created a minimal multiplatform library (for Android and iOS) but ran into the error
...shared/build/generated/moko/androidMain/src/com/example/mokotest/MR.kt: (16, 68): Unresolved reference: string
for the command./gradlew assemble
.I followed the README up until executing
./gradlew generateMRcommonMain
.My sample repo is at https://github.com/saravr/MokoTest.
All I need is to define string resources that are defined in commonMain and used in Android and iOS code in the shared module. Android Gradle Plugin version is 7.3.1 and Kotlin version is 1.7.20. What am I missing? Any help is appreciated.
Including shared gradle file:
The text was updated successfully, but these errors were encountered: