Weird error with a fresh project

Hello its my first time trying to code on android. I have not changed build.gradle.kts(root-level) at all, but i get the same error as this person:

I looked around the app and saw that theres problem downloading a file. It tries downloading the same file from 3 different URLs:
dl.google.com
repo.maven.apache.org
plugins.gradle.org
But it fails at all three.
I looked at the file name, the file name is called: com.android.library.gradle.plugin-8.10.1.pom
After searching it up, i find this website with a download link:
website: https://mvnrepository.com/artifact/com.android.library/com.android.library.gradle.plugin/8.10.1
download link: https://maven.google.com/com/android/library/com.android.library.gradle.plugin/8.10.1/com.android.library.gradle.plugin-8.10.1.pom

after using curl in cmd for the download link, it gives me a new link saying the file has been moved.
after using curl in cmd again with new link it says 404 error, same problem for when trying to download using free download manager.

I do use a VPN but i dont think 404 error has anything to do with my VPN or proxy settings, am i right?
What is my solution?

so by using the --scan i was able to download 3 of the files. It doesnt even show the other files without using --scan.
But then the 4th file from apache, if you go to https://repo.maven.apache.org/maven2/com/gradle/ there literally isnt a develocity-gradle-plugin
and using curl in cmd, it gives 404 error, it doenst exist.
Why are all the files completely gone and disappeared?
Or maybe im too new to understand whats happening?

Your error is neither weird, nor the same as the one in the thread you posted to, nor does your investigation fit your problem. :smiley:

That thread was about the existing AGP 8.10.1 version not being found. Your build complains that 8.11.1 is not found. The significant difference is, that in that other thread’s case it is some problem on the network. In your case it is exactly what the error says. You try to use a version that does not exist.

Yeah i was so exhausted that night because it wasnt working and no solutions anywhere. I was making wrong assumptions.

You are completely right my original problem was connection. Sorry for taking your time and thanks for your help.

1 Like