Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soheilpaper opened this issue Aug 25, 2020 · 0 comments
Open

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

soheilpaper opened this issue Aug 25, 2020 · 0 comments

Comments

@soheilpaper
Copy link

soheilpaper commented Aug 25, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant