Skip to content

repo.maven.apache.org: Name or service not known #2

@soheilpaper

Description

@soheilpaper

I have this error:

gradle publishToMavenLocal

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'ProtocolSTK500v1_Library'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:0.12.2.
     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:0.12.2.
         > Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom'.
            > Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom'.
               > repo.maven.apache.org: Name or service not known

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 8s


which have been solved by doting this command from here :


Try the below command from the path where your pom.xml is present,

$ git config --global url."https://".insteadOf git:/
it worked for me.

Which i don't know why this happens. i want to declare you this situation if be useful.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions