-
Notifications
You must be signed in to change notification settings - Fork 116
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
"Expected object 'MR' has no actual declaration in module <shared_debug> for JVM" (sample project included) #531
Comments
i just encountered this issue when upgrading my project's AGP to |
Had the same issue recently after i added string resources to the 3rd module in project. Even git rollback to the point where everything was ok didn't help =)) The only solution i found is |
i just tried cleaning the project, invalidating caches and purging edit: it looks like it's a known issue #510 |
I think this's continuation of problem (or its variant): #353 (comment) |
issue will be fixed so we should not close this issue now :) |
I just struggled this problem, and resolved by cleaning .gradle and using kotlin |
For me the fix was to add |
This issue is due to kotlin plugin 1.9.0. But maybe another plugin(such as com.arkivanov.parcelize.darwin 0.2.0) has used the 1.9.0 version, the higher version has the priority. Y |
Is this fixed on the moko-resources side? I'm with the Compose-Multiplatform team, trying to understand whether this is the same issue reported here and whether any action on our part is required. |
In Kotlin 1.9.0, the following error occurs when trying to build the project: > Expected object 'MR' has no actual declaration in module > <shared_debug> for JVM Adding a explicit dependency fix the issue for now: icerockdev/moko-resources#531
In Kotlin 1.9.0, the following error occurs when trying to build the project: > Expected object 'MR' has no actual declaration in module > <shared_debug> for JVM Adding a explicit dependency fix the issue for now: icerockdev/moko-resources#531
The app is working fine on both iOS and Android, but it fails for implicit Gradle dependencies when building it. Adding even more explicit setup then. icerockdev/moko-resources#531 icerockdev/moko-resources#535
In Kotlin 1.9.0, the following error occurs when trying to build the project: > Expected object 'MR' has no actual declaration in module > <shared_debug> for JVM Adding a explicit dependency fix the issue for now: icerockdev/moko-resources#531
The app is working fine on both iOS and Android, but it fails for implicit Gradle dependencies when building it. Adding even more explicit setup then. icerockdev/moko-resources#531 icerockdev/moko-resources#535
In here, after adding a |
In Kotlin 1.9.0, the following error occurs when trying to build the project: > Expected object 'MR' has no actual declaration in module > <shared_debug> for JVM Adding a explicit dependency fix the issue for now: icerockdev/moko-resources#531
In Kotlin 1.9.0, the following error occurs when trying to build the project: > Expected object 'MR' has no actual declaration in module > <shared_debug> for JVM Adding a explicit dependency fix the issue for now: icerockdev/moko-resources#531
I'm getting this issue with a fresh CMP template with kotlin 1.9.21.
Although this doesn't seem to work ... |
@maitriyogin adding this line worked for me
|
Thanks after adding |
I got the same issue after adding |
Same here :( |
kotlin = "1.9.23" worked for me:
|
will be fixed in 0.24.0, please check in 0.24.0-alpha-6 |
should be fixed in 0.24.0-beta-1 |
Hello,
I am trying to use
moko-resources
v0.23.0
to be able to use "shared" strings in a compose multiplatform project but I encounter the error in the title of this issue when trying to build the application.The project and
moko
setup I am using can be seen here - Mugurell/KaMPKit@e628563Additionally if I ask
moko
to build resources I get:with the
expect
class constructedbut not also with the
actual
onesThe text was updated successfully, but these errors were encountered: