Hi, I created and added own android library to mai...
# compose
y
Hi, I created and added own android library to main project like:
Copy code
implementation(project(":CommonUI"))
That library has only one file with simple interface
Copy code
interface Scene {
    @Composable
    fun presentation()
}
When Main project used that interface like
Copy code
object SampleScene: Scene {
    @Composable
    override fun presentation() {
        Text(text = "sample text")
    }
}
also sample usage
Copy code
class AppCoordinator {
    @Composable
    fun start() {
        val navigationController = rememberNavController()
        Scaffold() { innerPadding ->
            NavHost(
                navController = navigationController,
                startDestination = "routeId",
                modifier = Modifier.padding(innerPadding)
            ) {
                composable(route = "routeId") {
                    val scene: Scene = SampleScene
                    val result = scene.presentation()
                }
            }
        }
    }
}
Text not displaying and app force closing. But when I used similar interface, not from library - but created in main project - it is ok and information displaying correctly. Stack track not show errors. If debug step by step before closing - I have stack trace: (screenshot) Please, any ideas?