-
Notifications
You must be signed in to change notification settings - Fork 33
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
InputTextField NoSuchMethodError Crash #32
Comments
Sheets-Compose-Dialogs is currently using Compose 1.3.0. Try downgrading to the equal version 1.3.0 until Sheets-Compose-Dialogs is updated. |
Error seems to be happening on Compose version 1.3.0 also. |
The current version supports: 1.3.0 Compose & Compiler | 1.7.10 Kotlin
|
Error keeps happening after updating to version 1.1.1. I am using |
I can not replicate this problem from my own two android projects using InputDialog & InputTextField() with Version 1.1.1. Also, I used the dependencies of the 1.1.1 for the sample app instead of the modules, and it's working fine too. |
I'm sorry it is not, but I would be happy to provide any information necessary to fix this. |
Unfortunately, I don't know where to get started. Or what else could be relevant for this error. I was certain the correct compose versions would fix this issue, as it is common with those kinds of errors. I can't reproduce it in my apps or in the sample. Did you double-check that all the version (Kotlin, Compose and Build Gradle) are the same or compatible as in 1.1.1? |
I am using the same Compose BOM version as in 1.1.1 with Kotlin 1.8.10. Everything should be compatible. Only difference I could find is that I am using a higher Compose Navigation version, but I am not sure why that would cause this issue. |
It's highly unlikely in my opinion that the different compose navigation version would cause this. Did you try to Invalidate Caches etc.? I have unfortunately no further ideas, what could cause that as you are also the first one experiencing it so far. |
Hi, I was just experiencing the same crash when using InputTextField as one of the input options for Input Dialog @Gil2599 Are you by any chance using a specific version of
meaning not specified by the Compose BOM? What fixed it for me was reverting back to not declare the specific version of material3 - Am using Regards, happy easter and let me know what you think. Current versions: |
JetBrains/compose-multiplatform#2673 (comment) As @PeterKastner said this seems to occur when using a pre-release Material3 version because it breaks backwards compatibility. Unless there's a workaround, I'll have to avoid using |
Material3 has reached 1.1.0. This should hopefully be fixed once sheets updates to that too. |
I will update the BOM dependency to 2023.04.01 which includes the Material3 1.1.0 dependency. |
Seems like using InputTextField as one of the input options for Input Dialog throws NoSuchMethodError.
java.lang.NoSuchMethodError: No static method TextField(Ljava/lang/String;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Modifier;ZZLandroidx/compose/ui/text/TextStyle;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;ZLandroidx/compose/ui/text/input/VisualTransformation;Landroidx/compose/foundation/text/KeyboardOptions;Landroidx/compose/foundation/text/KeyboardActions;ZILandroidx/compose/foundation/interaction/MutableInteractionSource;Landroidx/compose/ui/graphics/Shape;Landroidx/compose/material3/TextFieldColors;Landroidx/compose/runtime/Composer;III)V in class Landroidx/compose/material3/TextFieldKt; or its super classes (declaration of 'androidx.compose.material3.TextFieldKt' appears in /data/app/~~hWNpS5NQIa0cv5wDFM3ITw==/com.<package-name>-IlNA4GFNg4kloexJLTKSXw==/base.apk)
Current versions:
Compose: 1.3.1
Compose Compiler: 1.4.3
Kotlin: 1.8.10
Dialogs Library: 1.1.0
The text was updated successfully, but these errors were encountered: