https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
f

Fabian de Almeida Ramos

03/31/2020, 7:57 AM
Hi all, I’ve been trying to add an Android library to my Android/iOS multiplatform project, but I’m getting the error
Copy code
Default interface methods are only supported starting with Android N (--min-api 24)
Been looking around, and it seems I have to set the
sourceCompatibility
and
targetCompatability
in
compileOptions
.. it’s just that I don’t know where to do that, as the
android { … }
closure is not found. Using kotlin gradle btw.
Nevermind; seems like I wasn’t really paying attention and trying to update my build.gradle in shared code package, not the actual app… woops.