question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding Decompose into the Jetbrains KMM/Compose template

See original GitHub issue

I started a project with the default template crated by IDEA for a KMM Compose project: image

Now I’m trying to add Decompse in, and it is having some issues.

I added the dependency to common/build.gradle.kts as such:

    ...
    sourceSets {
        val commonMain by getting {
            dependencies {
                api(compose.runtime)
                api(compose.foundation)
                api(compose.material)
                api(compose.ui)

                implementation("com.arkivanov.decompose:decompose:0.1.8")
                implementation("com.arkivanov.decompose:extensions-compose-jetbrains:0.1.8")
            }
        }
...

However in source files inside commonMain the IDE doesn’t know about the classes. I can add them via manual import, but still, that seems like a problem, has anyone else encountered this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Wavesonicscommented, Feb 20, 2021

Ah that does it, thanks!

0reactions
arkivanovcommented, Feb 20, 2021

I used Android Studio 4.2 Beta 4, openjdk 14.0.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

File templates | IntelliJ IDEA Documentation - JetBrains
Learn about using templates for creating new files in IntelliJ IDEA. ... ${NAME} inserts the name provided by the user when adding the...
Read more >
Templates with multiple files - IntelliJ IDEA - JetBrains
This tutorial shows how you can add a template that creates all three files at once. In the Settings/Preferences dialog ( Ctrl+Alt+S ),...
Read more >
Generate custom code constructs using live templates | IntelliJ ...
Alternatively, on the Code menu, click Insert Live Template Ctrl+J to open the suggestion list and select the necessary template.
Read more >
File and Code Templates - IntelliJ IDEA - JetBrains
Use this page to view, edit, and create file templates. ... Add a child template to the selected template to create a set...
Read more >
Live templates | IntelliJ IDEA Documentation - JetBrains
Use live templates to insert common constructs into your code, such as loops, conditions, declarations, or print statements.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found