https://kotlinlang.org logo
g

Guy Bieber

10/02/2020, 7:44 PM
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

zoha131

10/02/2020, 7:47 PM
which AS version are you on?
g

Guy Bieber

10/02/2020, 7:48 PM
4.2 Canary 13
z

zoha131

10/02/2020, 7:49 PM
Downgrading 12 might help. Before that try
Invalidate Caches/Restart
g

Guy Bieber

10/02/2020, 7:49 PM
did that already
j

JimK

10/02/2020, 7:49 PM
Are you using kotlin multiplatform workaround?
g

Guy Bieber

10/02/2020, 7:50 PM
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

Zach Klippenstein (he/him) [MOD]

10/02/2020, 7:51 PM
I think you have to upgrade compose and AGP at the same time
j

JimK

10/02/2020, 7:51 PM
the path it's looking for the compiler appears to be the alpha04 refactor?
g

Guy Bieber

10/02/2020, 7:52 PM
??
j

JimK

10/02/2020, 7:52 PM
Copy code
androidx.compose:compose-compiler has been refactored to androidx.compose.compiler:compiler
z

Zach Klippenstein (he/him) [MOD]

10/02/2020, 7:54 PM
AGP/AS alpha/canary 13 depends on compose alpha 4, and vice versa, so you need to upgrade both at the same time.
a

Alex Barcelo

10/02/2020, 7:57 PM
I had the same problem, I think that adding an explicit dependency to compose.compilercompile1.4.0-alpha04 worked for me
g

Guy Bieber

10/02/2020, 7:57 PM
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
3 Views