Comments (1)
While using Fluent V2Button I got the following error:
java.lang.NoSuchMethodError: 'void androidx.compose.ui.text.TextStyle. (long, long, androidx.compose.ui.text.font.FontWeight, androidx.compose.ui.text.font.FontStyle, androidx.compose.ui.text.font.FontSynthesis, androidx.compose.ui.text.font.FontFamily, java.lang.String, long, androidx.compose.ui.text.style.BaselineShift, androidx.compose.ui.text.style.TextGeometricTransform, androidx.compose.ui.text.intl.LocaleList, long, androidx.compose.ui.text.style.TextDecoration, androidx.compose.ui.graphics.Shadow, androidx.compose.ui.text.style.TextAlign, androidx.compose.ui.text.style.TextDirection, long, androidx.compose.ui.text.style.TextIndent, androidx.compose.ui.text.PlatformTextStyle, int, _layoutlib_._internal_.kotlin.jvm.internal.DefaultConstructorMarker)' at com.microsoft.fluentui.tokenized.controls.ButtonKt$Button$2.invoke(Button.kt:134) at com.microsoft.fluentui.tokenized.controls.ButtonKt$Button$2.invoke(Button.kt:57) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228) at com.microsoft.fluentui.tokenized.controls.ButtonKt.Button(Button.kt:54)
I looked at that file, but line 134 of Button.kt is calling TextStyle method which is experimental and likely is no longer supported.
Hey, at that time jetpack compose didn't fully support TextStyle and it was in experimental phase. Since, jetpack compose 1.0.0, TextStyle is being fully supported by jetpack compose, we are also removing the experimental APi, and will using the fully supported one.
Fluent v 0.1.39 will have this fix.
from fluentui-android.
Related Issues (20)
- V2 Drawer (Bottom) - Scroll, then expand instead of the other way around HOT 1
- Testing Fabric bot for labels
- CCB Crashes when long pressing item without providing optional LongPressItemClicked handler HOT 1
- Talkback should announce roles for CCB buttons HOT 1
- Accessibility - Listview header requires two tab button taps to navigate to next item HOT 2
- Unread dot in V2ListItem shifts all other elements to the right
- ListItem - trailingAccessoryContent with Button causes jank
- SideRail does not preserve background color when placed in a Material Theme
- Crash on rotation when something is picked from PeoplePicker (Fluent V2)
- [TalkBack] Talkback not announcing selected pill button index in PillBar V2 HOT 2
- Dualscreen-layout dependency causes the project to fail to build properly
- Adding Foreground Disabled 1 to the Label HOT 1
- Multiple substitutions specified in non-positional format of string resource string/position_string
- java.lang.IllegalArgumentException: The target value must have an associated anchor HOT 2
- Unable to dismiss bottom drawer when predictive back gesture is on
- [Accessibility] Padding on certain components is not adjusted with large font size and hinders readability HOT 3
- ListItem.Header Accessory Button Not Announcing Button as Button
- .NET Android projects support
- Scrolling down on a Bottom Drawer dismisses it too easily
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui-android.