Is Google Maven down?
# announcements
s
Is Google Maven down?
đźš« 2
List of repos here don't load for me https://maven.google.com/web/index.html
Copy code
Access to XMLHttpRequest at '<https://dl.google.com/android/maven2/master-index.xml>' from origin '<https://maven.google.com>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
c
That’s a CORS error, has nothing to do with the maven repo status.. Are you trying to fetch it from your browser’s javascript console? I’m not sure what you’re trying to do with that, but its not going to work. The maven repo should work fine from Gradle, though
s
I was trying to get a dependency and it wouldn't fetch. I tried checking the version from https://maven.google.com/web/index.html and it would load properly. Saw the CORS error in the console. Checked the https://mvnrepository.com/artifact/androidx.datastore/datastore/1.0.0-beta02 and got 404 trying to dl aar. CDN issue maybe?
This is the error btw
Copy code
Could not resolve all files for configuration ':app:debugCompileClasspath'.
   > Could not find androidx.datastore:datastore:1.0.0-beta02.
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
c
What does your gradle script look like? The error looks like you don’t have any repositories defined, as it should normally log where Gradle tried to look for that dependency. Do you have a repositories block with
google()
in it?
Copy code
repositories {
    mavenCentral()
    google()
}
s
yes. It is not my repo. It is the datastore codelab repo. It has the right config
Copy code
allprojects {
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
}
https://github.com/googlecodelabs/android-datastore
It was some weird regional network issue. Changing vpn worked.