Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Nov 18, 2024 · 1 comment

Comments

@JagadishaIncture
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants