Fotoapparat icon indicating copy to clipboard operation
Fotoapparat copied to clipboard

With Kotlin's 1.4+ update the Fotoapparat's build() function crashes with error:

Open AndyAls opened this issue 4 years ago • 3 comments

AndyAls avatar Sep 27 '20 01:09 AndyAls

2020-08-24 10:57:08.883 7440-7440  E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com., PID: 7440
    java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/coroutines/experimental/CoroutineContext$Element;
        at io.fotoapparat.Fotoapparat.<init>(Fotoapparat.kt:55)
        at io.fotoapparat.Fotoapparat.<init>(Fotoapparat.kt:48)
        at io.fotoapparat.FotoapparatBuilder.buildInternal(FotoapparatBuilder.kt:191)
        at io.fotoapparat.FotoapparatBuilder.build(FotoapparatBuilder.kt:180)

AndyAls avatar Sep 27 '20 01:09 AndyAls

I have exactly the same error

EDIT: Finally went back to Kotlin 1.3.30 and Fotoapparat 2.7.0, it's working again

WhiteYaksha avatar Oct 05 '20 07:10 WhiteYaksha

I upgraded to 2.7.0 and the problem is solved

AndyAls avatar Oct 09 '20 05:10 AndyAls