Jetpack Compose build150 Error: java.lang.NoSuchMe...
# compose-desktop
s
Jetpack Compose build150 Error: java.lang.NoSuchMethodError: 'androidx.compose.ui.Modifier androidx.compose.foundation.layout.SizeKt.preferredWidth-3ABfNKs(androidx.compose.ui.Modifier, float)'
k
Open the source code. Some of those modifiers have been renamed
s
if thats the case then why does IDE like intellij and Android Studio dont show compile time errors/warnings? even in editor they should some kind of deprecation hint etc
k
They were renamed in https://android-review.googlesource.com/c/platform/frameworks/support/+/1572682 that is part of build 152. You're showing a tiny part of the stack trace with no sample code
s
for android build i go compile time error: But IDE still seems to give no error/warn in editor, and its pointing to @stable annotated methods
message has been deleted
k
Again, there's not enough information in here. Upgrade to build 152, clear caches, fix to use the new names, and if it's still happening, file a bug with all the details.
s
will do , thanks for pointing me to right direction
k
Also this is still in alpha, so @Stable is not as "stable"
s
i understand that, i just pointed that stable annotation to tell that there was no deprecation message in source code.
yup upgrading to build 152 solved the issues.
👍 1