How is Localhost set up for Gradle in Android Studio?

Search This thread

Xarzu

Member
Feb 26, 2012
16
0
How is Localhost set up for Gradle in Android Studio?

I am trying to "Sync Project with Gradle Files" by clicking on the elephant icon in Android Studio. Why do I get the following errors? Is there something I need to do in Ubuntu to make localhost defined or active?

org.gradle.api.resources.ResourceException: Could not get resource 'http://localhost/gov/tak/thirdparty/takthirdparty/2.5.1/takthirdparty-2.5.1.pom'.

org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET http://localhost/gov/tak/thirdparty/takthirdparty/2.5.1/takthirdparty-2.5.1

org.apache.http.conn.HttpHostConnectException: Connect to localhost:80 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

java.net.ConnectException: Connection refused (Connection refused)
 

Oswald Boelcke

Senior Moderator / Moderator Committee
Staff member
How is Localhost set up for Gradle in Android Studio?

I am trying to "Sync Project with Gradle Files" by clicking on the elephant icon in Android Studio. Why do I get the following errors? Is there something I need to do in Ubuntu to make localhost defined or active?

org.gradle.api.resources.ResourceException: Could not get resource 'http://localhost/gov/tak/thirdparty/takthirdparty/2.5.1/takthirdparty-2.5.1.pom'.

org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET http://localhost/gov/tak/thirdparty/takthirdparty/2.5.1/takthirdparty-2.5.1

org.apache.http.conn.HttpHostConnectException: Connect to localhost:80 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

java.net.ConnectException: Connection refused (Connection refused)
Hello and good morning, @Xarzu

Prior to your next posting please read the guidances that are stuck on top of every forum like
and the others. I've moved the thread to Android Q&A.

Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator
 

Xarzu

Member
Feb 26, 2012
16
0
Hello and good morning, @Xarzu

Prior to your next posting please read the guidances that are stuck on top of every forum like
and the others. I've moved the thread to Android Q&A.

Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderato

I think it is developer relateed. I have to figure it out before I can do development. But, I see your point.
 

Oswald Boelcke

Senior Moderator / Moderator Committee
Staff member
I think it is developer relateed. I have to figure it out before I can do development. But, I see your point.
I agree your thread might be development related but please note the sub-title of the forum in that you'd posted:
"For ROMs, kernels, tools and scripts only (devices that do not have a forum on XDA)"
 

Xarzu

Member
Feb 26, 2012
16
0
I agree your thread might be development related but please note the sub-title of the forum in that you'd posted:
"For ROMs, kernels, tools and scripts only (devices that do not have a forum on XDA)"
I see. So the post was moved to
 

Oswald Boelcke

Senior Moderator / Moderator Committee
Staff member
You can see the forum the thread is now located in at the top of your thread but also at the bottom:
Screenshot 2022-08-16 092614.png
Screenshot 2022-08-16 092721.png