Hello All, I am seeing this when trying to setup C...
# compose
s
Hello All, I am seeing this when trying to setup Compose:
Copy code
Could not resolve androidx.compose:compose-compiler:1.0.0-beta09.
         > Could not get resource '<https://s3.amazonaws.com/tgl.maven/androidx/compose/compose-compiler/1.0.0-beta09/compose-compiler-1.0.0-beta09.pom>'.
            > Could not GET '<https://s3.amazonaws.com/tgl.maven/androidx/compose/compose-compiler/1.0.0-beta09/compose-compiler-1.0.0-beta09.pom>'. Received status code 403 from server: Forbidden
Seems strange since this is a public beta I think..any pointers?
j
google repo is missing probably
s
Copy code
allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
            url "<https://maven.google.com>"
        }
        jcenter()
        // Include maven snapshots repository
        maven {
            url "<https://oss.sonatype.org/content/repositories/snapshots>"
        }
    }
}
I have this in my build.gradle
I could not find anything in the docs other than I should be using google repo
Copy code
Resource missing. [HTTP GET: <https://dl.google.com/dl/android/maven2/androidx/compose/compose-compiler/1.0.0-beta09/compose-compiler-1.0.0-beta09.pom>]
The gradle sync with --info says it is a 404 on that endpoint 😞
l
What version of AGP are you using? This error means you are running an old and unsupported version
s
I am using 4.0.2 AGP
l
As mentioned here it is recommendedto use Arctic Fox, (and AGP 7.0) I think though Compose is compatible with AGP 4.2, so you could try upgrading to that as well
1
s
Thanks @Louis Pullen-Freilich [G] Yes that was it! I was running Arctic Fox, but did not realize it might need an AGP update!