RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.82k stars 405 forks source link

Cannot load Fotoapparat on Kotlin 1.3 #314

Closed bmachimbira closed 5 years ago

bmachimbira commented 5 years ago

I migrated my existing application that uses Fotoapparat for the camera. The application compiles successfully but I get the following error:

java.lang.NoClassDefFoundError: Failed resolution of: Lkotlinx/coroutines/experimental/CompletableDeferredKt; at io.fotoapparat.hardware.CameraDevice.<init>(CameraDevice.kt:48) at io.fotoapparat.hardware.Device.<init>(Device.kt:39) at io.fotoapparat.hardware.Device.<init>(Device.kt:34) at io.fotoapparat.Fotoapparat.<init>(Fotoapparat.kt:55) at io.fotoapparat.Fotoapparat.<init>(Fotoapparat.kt:48)

I think this is because the library uses the experimental coroutines module, which has been removed from Kotlin 1.3.

I am using version 2.5.0 of Fotoapparat.

geminixandroid commented 5 years ago

Same issue

limuyang2 commented 5 years ago

Same issue

limuyang2 commented 5 years ago

coroutines error

limuyang2 commented 5 years ago

my version is implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'

vicobz commented 5 years ago

Same issue. Need a fix asap! :)

AshuTyagi16 commented 5 years ago

Same Issue. please fix.

dmitry-zaitsev commented 5 years ago

I will take a look and try to release a new version today. Latest, tomorrow.

On Tue, 6 Nov 2018, 08:29 Ashu Tyagi, notifications@github.com wrote:

Same Issue. please fix.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RedApparat/Fotoapparat/issues/314#issuecomment-436156394, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2igkQrzo7_zs2gmf4SgP9p68mQLMz2ks5usTpqgaJpZM4YDeYT .