Comments (14)
Hi again,
I've found the issue. It was an incompatibility between the Compose and Accompanist libraries that I was using in the project.
I was using this:
implementation platform("androidx.compose:compose-bom:2023.05.01") implementation "com.google.accompanist:accompanist-permissions:0.31.3-beta"
But the accompanist library v0.31.3-beta works with Compose UI 1.5 (1.5.x) and compose-bom:2023.05.01 works with Compose 1.4.x.
Now I've change the libraries by these versions and everything works well, because the accompanist library v0.30.1 works with Compose UI 1.4 (1.4.x)
implementation platform("androidx.compose:compose-bom:2023.05.01") implementation 'com.google.accompanist:accompanist-permissions:0.30.1'
I hope that it can help to someone.
Thanks by this wonderful "Kalendar".
from kalendar.
Hey will check it later today.
from kalendar.
Yes, and should push a fix by tonight or tomorrow!
from kalendar.
same issue with me.
from kalendar.
Hey @rohitjakhar @coccalis ,
What is the Compose version are you on?
from kalendar.
implementation platform('androidx.compose:compose-bom:2023.05.01')
kotlinCompilerExtensionVersion '1.4.6'
these.
from kalendar.
Hi!,
Same issue with me.
implementation platform('androidx.compose:compose-bom:2023.05.01')
kotlinCompilerExtensionVersion '1.4.1'
Error:
java.lang.NoSuchMethodError: No static method AnimatedContent(Ljava/lang/Object;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Ljava/lang/String;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V in class Landroidx/compose/animation/AnimatedContentKt; or its super classes (declaration of 'androidx.compose.animation.AnimatedContentKt' appears in ...)
at com.himanshoe.kalendar.ui.component.header.KalendarHeaderKt.KalendarHeader(KalendarHeader.kt:87)
at com.himanshoe.kalendar.ui.firey.KalendarFireyKt.KalendarFirey(KalendarFirey.kt:118)
at com.himanshoe.kalendar.KalendarKt.Kalendar(Kalendar.kt:136)
from kalendar.
Hi!
any updates?
from kalendar.
https://github.com/hi-manshu/Kalendar/releases/tag/v1.3.2
This should be fixed in this!
from kalendar.
Hi,
I've updated version to 1.3.2 but the issue continues.
This is the logcat error:
java.lang.NoSuchMethodError: No static method AnimatedContent(Ljava/lang/Object;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Ljava/lang/String;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V in class Landroidx/compose/animation/AnimatedContentKt; or its super classes (declaration of 'androidx.compose.animation.AnimatedContentKt' appears in /data/app/~~McmB8z3HIZ136tq4KHO-9Q==/-51h2Mr0mubO16KkbvCby0w==/base.apk)
at com.himanshoe.kalendar.ui.component.header.KalendarHeaderKt.KalendarHeader(KalendarHeader.kt:87)
at com.himanshoe.kalendar.ui.firey.KalendarFireyKt.KalendarFirey(KalendarFirey.kt:118)
at com.himanshoe.kalendar.KalendarKt.Kalendar(Kalendar.kt:136)
I'm using this Kalendar:
Kalendar(
currentDay = Clock.System.now().toLocalDateTime(TimeZone.currentSystemDefault()).date,
kalendarType = KalendarType.Firey,
modifier = Modifier,
showLabel = true,
events = KalendarEvents(),
kalendarHeaderTextKonfig = null,
daySelectionMode = DaySelectionMode.Single,
dayContent = null,
headerContent = null,
)
from kalendar.
Awesome, thanks!
Hope this helps. Any other feature you wanna see?
from kalendar.
Hi, i am using the v1.3.2 and getting this error too:
java.lang.NoSuchMethodError: No static method AnimatedContent(Ljava/lang/Object;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Ljava/lang/String;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V in class Landroidx/compose/animation/AnimatedContentKt; or its super classes (declaration of 'androidx.compose.animation.AnimatedContentKt' appears in /data/app/~~f0Ailj78fmB7zkVSDVaIUA==/com.mmmeat.mmmpro.dev-ezhCUn494SAO4JOv-1IAlQ==/base.apk)
I am not using accompanist or bom
val today = LocalDate.now()
Kalendar(
currentDay = today,
kalendarType = KalendarType.Firey,
modifier = Modifier,
showLabel = true,
events = KalendarEvents(),
kalendarHeaderTextKonfig = null,
kalendarColors = KalendarColors.default(),
kalendarDayKonfig = KalendarDayKonfig.default(),
daySelectionMode = DaySelectionMode.Single,
dayContent = null,
headerContent = null,
onDayClick = { selectedDay, events ->
// Handle day click event
},
onRangeSelected = { selectedRange, events ->
// Handle range selection event
},
onErrorRangeSelected = { error ->
// Handle error
})
from kalendar.
Did you try the above mentioned solution?
from kalendar.
yes, i put the versions mentioned but get the same error. I think this is related to compose-animation, so i tried to add the lib in my project, but still having the java.lang.NoSuchMethodError: No static method AnimatedContent
from kalendar.
Related Issues (20)
- Listener for previous and next month HOT 3
- Crash HOT 1
- current day circle border order HOT 1
- Questions about Kalendar's functionality
- Support swiping to change dates HOT 2
- Allow event indicator colour to be specified HOT 3
- Allow default configs to be copied and reused easily HOT 2
- Provide previous/next month callbacks
- From what version of Android does this library support? HOT 2
- Incorrect Month Progression. HOT 6
- dayBackgroundColor size modify
- Showing the week value(mon~sun) is different of two view HOT 1
- java.lang.NoSuchMethodError: No static method - AnimatedContent HOT 2
- How to change only the color of Text on a special day (Sunday)
- How to change the month of calendar
- Kalendar no static method AnimatedContent HOT 15
- persian calendar HOT 1
- Cannot access class 'kotlinx.datetime.LocalDate'. Check your module classpath for missing or conflicting dependencies HOT 1
- Kalendar Endlos, daySelectionMode: Incorrect selection
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 kalendar.