Skip to content
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

NoSuchMethodError #92

Closed
Ratul-Bin-Tazul opened this issue Dec 22, 2021 · 0 comments
Closed

NoSuchMethodError #92

Ratul-Bin-Tazul opened this issue Dec 22, 2021 · 0 comments

Comments

@Ratul-Bin-Tazul
Copy link

Ratul-Bin-Tazul commented Dec 22, 2021

Getting crash report on many devices after upgrading play services.

Fatal Exception: java.lang.NoSuchMethodError: No static method toDouble-impl(JLjava/util/concurrent/TimeUnit;)D in class Lkotlin/time/Duration; or its super classes (declaration of 'kotlin.time.Duration' appears in /data/app/~~d-UX4BGerrRpTNySBXrPhg==/com.hishabee.business-JOc5lJc09mapxjTUysFhsA==/base.apk!classes3.dex)
at org.koin.core.time.MeasureKt.measureDuration(Measure.kt:32)
at org.koin.core.KoinApplication.modules(KoinApplication.kt:63)
at com.rtchagas.pingplacepicker.inject.PingKoinContext$koin$2$1.invoke(PingKoinComponent.kt:19)
at com.rtchagas.pingplacepicker.inject.PingKoinContext$koin$2$1.invoke(PingKoinComponent.kt:16)
at org.koin.dsl.KoinApplicationKt.koinApplication(KoinApplication.kt:28)
at com.rtchagas.pingplacepicker.inject.PingKoinContext$koin$2.invoke(PingKoinComponent.kt:16)
at com.rtchagas.pingplacepicker.inject.PingKoinContext$koin$2.invoke(PingKoinComponent.kt:15)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.rtchagas.pingplacepicker.inject.PingKoinContext.getKoin(PingKoinComponent.kt:15)
at com.rtchagas.pingplacepicker.inject.PingKoinComponent$DefaultImpls.getKoin(PingKoinComponent.kt:36)
at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getKoin(PlacePickerActivity.kt:52)
at org.koin.android.ext.android.ComponentCallbackExtKt.getKoin(ComponentCallbackExt.kt:31)
at org.koin.android.viewmodel.ext.android.ActivityExtKt.getViewModel(ActivityExt.kt:66)
at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$special$$inlined$viewModel$default$2.invoke(ActivityExt.kt:68)
at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$special$$inlined$viewModel$default$2.invoke(ActivityExt.kt:38)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)
at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getViewModel(PlacePickerActivity.kt:93)
at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.loadNearbyPlaces(PlacePickerActivity.kt:492)
at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getDeviceLocation$lambda-7(PlacePickerActivity.kt:332)
at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.$r8$lambda$aHky0eaA5cVOLK-CPWrdPqsO7yQ()
at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$ExternalSyntheticLambda5.onSuccess(:6)
at com.google.android.gms.tasks.zzm.run(com.google.android.gms:play-services-tasks@@18.0.1:1)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:263)
at android.app.ActivityThread.main(ActivityThread.java:8283)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)

rtchagas added a commit that referenced this issue Jan 7, 2022
- Set compileSdk to 31.
Any client app must also bump to latest SDK.

Koin has a known issue with Kotlin 1.6
but it is currently mitigated.

Fixes #92, fixes #89

Signed-off-by: Rafael Chagas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant