rtchagas / pingplacepicker

An almost plug and play replacement for Google's Place Picker
Apache License 2.0
142 stars 55 forks source link

Crashes with newer version of Kotlin #88

Closed Ratul-Bin-Tazul closed 3 years ago

Ratul-Bin-Tazul commented 3 years ago

Was working perfectly. But crashing as we updated the Kotlin version.

Stacktrace:

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.hishabee.business, PID: 20511 java.lang.NoSuchMethodError: No virtual method elapsedNow-UwyO8pc()D in class Lkotlin/time/TimeMark; or its super classes (declaration of 'kotlin.time.TimeMark' appears in /data/app/com.hishabee.business-Un2E2XPWpyVrksxQcCiILg==/base.apk!classes4.dex) at org.koin.core.time.MeasureKt.measureDuration(Measure.kt:63) 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:11) 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:11) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.rtchagas.pingplacepicker.inject.PingKoinContext.getKoin(Unknown Source:2) 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$2.invoke(ActivityExt.kt:68) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$2.invoke(Unknown Source:0) at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getViewModel(Unknown Source:2) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.loadNearbyPlaces(PlacePickerActivity.kt:492) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.access$loadNearbyPlaces(PlacePickerActivity.kt:52) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:332) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:52) at com.google.android.gms.tasks.zzn.run(com.google.android.gms:play-services-tasks@@17.2.0:4) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:7948) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)