Thread
#compose
    a

    Alexander Repin

    2 years ago
    Is there're a way to make it working?
    aiidziis

    aiidziis

    2 years ago
    class MainActivity {
        //CODE
    }
    
    @Composable
    fun Greeting() {
        //CODE
    }
    
    @Preview
    @Composable
    fun Preview() {
        //CODE
    }
    Luca Nicoletti

    Luca Nicoletti

    2 years ago
    It tells you what to do
    The function must be a top-level function
    a

    Alexander Repin

    2 years ago
    yeap. it must be top level
    but it's already top level, isn't it?
    Luca Nicoletti

    Luca Nicoletti

    2 years ago
    No, it’s inside the
    MainActivity
    class
    a

    Alexander Repin

    2 years ago
    OMG. Okay
    Luca Nicoletti

    Luca Nicoletti

    2 years ago
    🤦🏼