I am trying to go back to Alpha03 but get the foll...
# compose
g
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 ‘modelkotlin-extension’.
> Could not find androidx.compose.compilercompiler1.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
which AS version are you on?
g
4.2 Canary 13
z
Downgrading 12 might help. Before that try
Invalidate Caches/Restart
g
did that already
j
Are you using kotlin multiplatform workaround?
g
nope
Copy code
composeOptions {
    kotlinCompilerVersion "1.4.0"
    kotlinCompilerExtensionVersion "1.0.0-alpha03"
}
I assume how the extensions are picked up changed between canary 13 and 14
z
I think you have to upgrade compose and AGP at the same time
j
the path it's looking for the compiler appears to be the alpha04 refactor?
g
??
j
Copy code
androidx.compose:compose-compiler has been refactored to androidx.compose.compiler:compiler
z
AGP/AS alpha/canary 13 depends on compose alpha 4, and vice versa, so you need to upgrade both at the same time.
a
I had the same problem, I think that adding an explicit dependency to compose.compilercompile1.4.0-alpha04 worked for me
g
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