Hello guys, I am new in compose and I got the erro...
# compose
j
Hello guys, I am new in compose and I got the error below when i tried to run my compose project the first time. Please, how do I resolve the error?
Copy code
Execution failed for task ':app:compileDebugKotlin'.
> Could not resolve all files for configuration ':app:kotlin-extension'.
   > Could not find androidx.compose.compiler:compiler:1.3.0-alpha02.
i
This is a regular Gradle issue, not exactly specific to Compose. Essentially, you’ve asked Gradle (somewhere) to look for a library/artifact called
androidx.compose.compiler:compiler:1.3.0-alpha02
and Gradle can’t find that (because
compiler:1.3.0-alpha02
doesn’t exist). Most of the Compose libraries have a
1.3.0-alpha02
release, but the compiler is a bit of a special case, and doesn’t always have matching versions like the rest of the Compose libraries. The other libraries like
foundation
,
material
or
runtime
generally share the same version name (i.e.
1.3.0-alpha02
). At the moment, the most recent version of
androidx.compose.compiler:compiler
is
1.3.0-rc01
, so if you change your Gradle declaration to use
1.3.0-rc01
for that artifact, things should start to work again. You can have a peak into the Google Maven Repository and look at the available versions here: Compiler: https://maven.google.com/web/index.html#androidx.compose.compiler:compiler Foundation: https://maven.google.com/web/index.html#androidx.compose.foundation:foundation Runtime: https://maven.google.com/web/index.html#androidx.compose.runtime:runtime
j
@Isaac Udy Thank you for the recommendation. It solved my problem