Assigned
Status Update
Comments
le...@google.com <le...@google.com>
co...@google.com <co...@google.com> #2
Apologies Jeremy, I realized we have a tracking ticket for the sheet APIs specifically:
ma...@google.com <ma...@google.com> #3
Sounds good. I will make it a dup.
[Deleted User] <[Deleted User]> #4
This is happening again with the latest BOM, this time on a different class. Latest BOM: "2024.01.00"
This time, if i do not specify the the Material3 version, I get this error, upon using CircularProgressIndicator
:
java.lang.NoSuchMethodError: No virtual method at(Ljava/lang/Object;I)Landroidx/compose/animation/core/KeyframesSpec$KeyframeEntity; in class Landroidx/compose/animation/core/KeyframesSpec$KeyframesSpecConfig; or its super classes (declaration of 'androidx.compose.animation.core.KeyframesSpec$KeyframesSpecConfig' appears in /data/app/~~BCe5T7slGz9raj_CZZpnOg==/net.artprocessors.eileenappdemo.dev-mUjiZLyR7bo3ZfdT8PCcNw==/base.apk)
at androidx.compose.material3.ProgressIndicatorKt$CircularProgressIndicator$endAngle$1.invoke(ProgressIndicator.kt:371)
at androidx.compose.material3.ProgressIndicatorKt$CircularProgressIndicator$endAngle$1.invoke(ProgressIndicator.kt:369)
at androidx.compose.animation.core.AnimationSpecKt.keyframes(AnimationSpec.kt:649)
at androidx.compose.material3.ProgressIndicatorKt.CircularProgressIndicator-LxG7B9w(ProgressIndicator.kt:369)
The only way to fix this is by specifying the Material3 version , which this time has to be: "1.2.0-rc01"
ma...@google.com <ma...@google.com> #5
The fix for the issue described in
Description
Jetpack Compose component(s) used: Material3
Android Studio Build: Android Studio Hedgehog | 2023.1.1
Kotlin version: 1.9.21
Steps to Reproduce or Code Sample to Reproduce:
I'm getting the error mentioned in the title when using the Compose BOM imports.
```
androidX-compose-BOM = { module = "androidx.compose:compose-bom", version.ref = "composeBOM" }
androidX-composeMaterial-Material3 = { module = "androidx.compose.material3:material3" }
```
The error goes away if I manually import material with a version number, even though that version matches the one brought in form the BOM I'm refering.
So this fixes the issue:
```
material3 = "1.1.2"
androidX-compose-BOM = { module = "androidx.compose:compose-bom", version.ref = "composeBOM" }
androidX-composeMaterial-Material3 = { module = "androidx.compose.material3:material3", version.ref = "material3" }
```
But I would like to rely properly on the BOM, without hardcoding version numbers anywhere beyond the BOM itself.
Any ideas why this is happening?
Stack trace (if applicable):
```
java.lang.NoSuchMethodError: No virtual method textFieldColors-l59Burw(JJJJJLandroidx/compose/foundation/text/selection/TextSelectionColors;JJJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Landroidx/compose/material3/TextFieldColors; in class Landroidx/compose/material3/TextFieldDefaults; or its super classes (declaration of 'androidx.compose.material3.TextFieldDefaults' appears in /data/app/~~0lWNizfCvv89i_mze06-qg==/net.artprocessors.eileenappdemo.dev-JU63qtUF8ys1_YOogh2hfQ==/base.apk)
at net.artprocessors.eileenapp.presentation.ui.common.edit.BaseEditFieldKt.BaseEditField(BaseEditField.kt:52)
at net.artprocessors.eileenapp.presentation.ui.common.search.SearchBoxKt$SearchBox$1.invoke(SearchBox.kt:55)
at net.artprocessors.eileenapp.presentation.ui.common.search.SearchBoxKt$SearchBox$1.invoke(SearchBox.kt:46)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:117)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at net.artprocessors.eileenapp.presentation.ui.common.WidgetsKt$InteractiveBox$1.invoke(Widgets.kt:52)
at net.artprocessors.eileenapp.presentation.ui.common.WidgetsKt$InteractiveBox$1.invoke(Widgets.kt:51)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.material3.SurfaceKt$Surface$1.invoke(Surface.kt:132)
at androidx.compose.material3.SurfaceKt$Surface$1.invoke(Surface.kt:114)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)
at androidx.compose.material3.SurfaceKt.Surface-T9BRK9s(Surface.kt:111)
at net.artprocessors.eileenapp.presentation.ui.common.WidgetsKt.InteractiveBox-3IgeMak(Widgets.kt:42)
at net.artprocessors.eileenapp.presentation.ui.common.search.SearchBoxKt.SearchBox-f8fvdUg(SearchBox.kt:43)
at net.artprocessors.eileenapp.presentation.ui.home.composables.HomeSearchButtonKt.HomeSearchButton(HomeSearchButton.kt:41)
at net.artprocessors.eileenapp.presentation.ui.home.composables.HomeContentKt$HomeContent$2$4.invoke(HomeContent.kt:98)
at net.artprocessors.eileenapp.presentation.ui.home.composables.HomeContentKt$HomeContent$2$4.invoke(HomeContent.kt:97)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:117)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at net.artprocessors.eileenapp.presentation.ui.common.AnimationKt$AnimateFade$1.invoke(Animation.kt:143)
at net.artprocessors.eileenapp.presentation.ui.common.AnimationKt$AnimateFade$1.invoke(Animation.kt:142)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:117)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.animation.AnimatedVisibilityKt.AnimatedEnterExitImpl(AnimatedVisibility.kt:941)
at androidx.compose.animation.AnimatedVisibilityKt.AnimatedVisibility(AnimatedVisibility.kt:129)
at net.artprocessors.eileenapp.presentation.ui.common.AnimationKt.AnimateFade(Animation.kt:137)
at net.artprocessors.eileenapp.presentation.ui.home.composables.HomeContentKt$HomeContent$2.invoke(HomeContent.kt:97)
at net.artprocessors.eileenapp.presentation.ui.home.composables.HomeContentKt$HomeContent$2.invoke(HomeContent.kt:55)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
```