RedApparat / Fotoapparat

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

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

Open AndyAls opened 4 years ago

AndyAls commented 4 years ago
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)
WhiteYaksha commented 4 years ago

I have exactly the same error

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

AndyAls commented 4 years ago

I upgraded to 2.7.0 and the problem is solved