Fabian de Almeida Ramos

    Fabian de Almeida Ramos

    2 years ago
    Hi all, I’ve been trying to add an Android library to my Android/iOS multiplatform project, but I’m getting the error
    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.