-
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
java.lang.NoSuchFieldError: No static field hide_in_inspector_tag of type I in class Landroidx/compose/ui/R$id; or its superclasses (declaration of 'androidx.compose.ui.R$id' appears in #4711
Comments
i get this error too only if running android
jetbrains-navigation-compose-version = "2.8.0-beta01" |
sample that I'm trying to use: https://github.com/razaghimahdi/Shopping-By-KMP/tree/compose-navigation |
thanks for the detail |
+1 that the navigation library clashes somehow with the material ripple library version. My guess is that in brings in a broken ripple dependency that was probably fixed in newer versions. (https://stackoverflow.com/questions/78248205/android-compose-animations-crashing-in-release-builds) |
Temporary mitigation:
|
works fine for now! thanks for ur help man |
I think the bug is still valid and worth keeping open. |
Actually u r right👍 |
I guess it's because version conflict. See my explanation here - #4677 (comment) Please try to update to the latest |
Closing as duplicate of #4677 The cause was that Google's jetpack navigation 2.8.* (we're using original binary on Android) introduced requirement of Compose 1.7 that is not adopted for multiplatform yet. I believe that it was fixed JetBrains/compose-multiplatform-core#1315 - we'll be on 2.7 version until Compose Multiplatform 1.7 |
org.jetbrains.androidx.navigation:navigation-compose causes crash, and it says:
java.lang.NoSuchFieldError: No static field hide_in_inspector_tag of type I in class Landroidx/compose/ui/R$id; or its superclasses (declaration of 'androidx.compose.ui.R$id' appears in androidx.compose.material.ripple.RippleContainer.(RippleContainer.android.kt:70)
at androidx.compose.material.ripple.AndroidRippleIndicationInstance.getOrCreateRippleContainer(Ripple.android.kt:255)
at androidx.compose.material.ripple.AndroidRippleIndicationInstance.addRipple(Ripple.android.kt:198)
at androidx.compose.material.ripple.Ripple$rememberUpdatedInstance$1$1.emit(Ripple.kt:138)
at androidx.compose.material.ripple.Ripple$rememberUpdatedInstance$1$1.emit(Ripple.kt:136)
compose-navigation-ver = "2.8.0-alpha02"
compose = "1.6.10-beta01"
I get this crash in every version, how to fix that?
Update:
sample : https://github.com/razaghimahdi/Shopping-By-KMP/tree/compose-navigation
The text was updated successfully, but these errors were encountered: