Tlaster / PreCompose

Compose Multiplatform Navigation && State Management
https://tlaster.github.io/PreCompose/
MIT License
864 stars 50 forks source link

Function 'PreComposeApp' can not be called: No function found for symbol 'moe.tlaster.precompose/PreComposeApp|PreComposeApp(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){}[0]' #401

Open JagadishaIncture opened 4 days ago

JagadishaIncture commented 4 days ago

Describe the bug

Function 'PreComposeApp' can not be called: No function found for symbol 'moe.tlaster.precompose/PreComposeApp|PreComposeApp(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){}[0]'

To Reproduce

PreComposeApp { Column( modifier = Modifier .fillMaxSize(), verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.CenterHorizontally ) {

           Spacer(modifier = Modifier.height(20.dp))
           Text(text = "Cherrywork")

       }
   }

// precompose api("moe.tlaster:precompose:1.5.10") api("moe.tlaster:precompose-viewmodel:1.5.10") api("moe.tlaster:precompose-koin:1.5.10")

Expected behavior A clear and concise description of what you expected to happen.

Minimal reproducible example Kotlin : 2.0.0 CMP: 1.7.1

mobiletoly commented 23 hours ago

this is probably unrelated to your issue, but you should be using version 1.7.0-alpha03 of Precompose when using CMP 1.7.1, otherwise it is not going to work