Thread
#compose
    g

    Guy Bieber

    1 year ago
    I am trying to go back to Alpha03 but get the following error with canary13:
    Execution failed for task ':model:prepareDebugKotlinCompileTask'.
    Could not resolve all files for configuration ‘:model:kotlin-extension’.
    Could not find androidx.compose.compiler
    :compiler:1.0.0-alpha03. Searched in the following locations: - https://dl.bintray.com/kotlin/kotlin-eap/androidx/compose/compiler/compiler/1.0.0-alpha03/compiler-1.0.0-alpha03.pom - https://repo.maven.apache.org/maven2/androidx/compose/compiler/compiler/1.0.0-alpha03/compiler-1.0.0-alpha03.pom - https://dl.google.com/dl/android/maven2/androidx/compose/compiler/compiler/1.0.0-alpha03/compiler-1.0.0-alpha03.pom - https://jcenter.bintray.com/androidx/compose/compiler/compiler/1.0.0-alpha03/compiler-1.0.0-alpha03.pom Required by: project :model
    z

    zoha131

    1 year ago
    which AS version are you on?
    g

    Guy Bieber

    1 year ago
    4.2 Canary 13
    z

    zoha131

    1 year ago
    Downgrading 12 might help. Before that try
    Invalidate Caches/Restart
    g

    Guy Bieber

    1 year ago
    did that already
    j

    JimK

    1 year ago
    Are you using kotlin multiplatform workaround?
    g

    Guy Bieber

    1 year ago
    nope
    composeOptions {
        kotlinCompilerVersion "1.4.0"
        kotlinCompilerExtensionVersion "1.0.0-alpha03"
    }
    I assume how the extensions are picked up changed between canary 13 and 14
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    I think you have to upgrade compose and AGP at the same time
    j

    JimK

    1 year ago
    the path it's looking for the compiler appears to be the alpha04 refactor?
    g

    Guy Bieber

    1 year ago
    ??
    j

    JimK

    1 year ago
    androidx.compose:compose-compiler has been refactored to androidx.compose.compiler:compiler
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    AGP/AS alpha/canary 13 depends on compose alpha 4, and vice versa, so you need to upgrade both at the same time.
    Alex Barcelo

    Alex Barcelo

    1 year ago
    I had the same problem, I think that adding an explicit dependency to compose.compiler:compile:1.4.0-alpha04 worked for me
    g

    Guy Bieber

    1 year ago
    I did, but alpha04 has a bug that I can’t work with.
    any way to use alpha03 with canary 13
    pointing to the alpha04 compiler with the alpha03 implementation gets internal compiler errors.
    messy. Guess I go back to canary 12
    had to go back a version of gradle also