Android does not resolve Firebase dependencies

0

I'm having an error resolving gradle dependencies:

I try to compile and get the following error:

Error:FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_prodDebugCompile'.
   > Could not resolve com.google.firebase:firebase-core:9.0.0.
     Required by:
         tinc_project:app:unspecified
      > Could not resolve com.google.firebase:firebase-core:9.0.0.
         > Could not get resource 'https://nexus.poynt.com/content/repositories/snapshots/com/google/firebase/firebase-core/9.0.0/firebase-core-9.0.0.pom'.
            > Could not GET 'https://nexus.poynt.com/content/repositories/snapshots/com/google/firebase/firebase-core/9.0.0/firebase-core-9.0.0.pom'. Received status code 401 from server: Unauthorized
      > Could not resolve com.google.firebase:firebase-core:9.0.0.
         > Could not get resource 'https://nexus.poynt.com/content/repositories/releases/com/google/firebase/firebase-core/9.0.0/firebase-core-9.0.0.pom'.
            > Could not GET 'https://nexus.poynt.com/content/repositories/releases/com/google/firebase/firebase-core/9.0.0/firebase-core-9.0.0.pom'. Received status code 401 from server: Unauthorized
   > Could not resolve com.google.android.gms:play-services-analytics:9.0.0.
     Required by:
         tinc_project:app:unspecified
      > Could not resolve com.google.android.gms:play-services-analytics:9.0.0.
         > Could not get resource 'https://nexus.poynt.com/content/repositories/snapshots/com/google/android/gms/play-services-analytics/9.0.0/play-services-analytics-9.0.0.pom'.
            > Could not GET 'https://nexus.poynt.com/content/repositories/snapshots/com/google/android/gms/play-services-analytics/9.0.0/play-services-analytics-9.0.0.pom'. Received status code 401 from server: Unauthorized
      > Could not resolve com.google.android.gms:play-services-analytics:9.0.0.
         > Could not get resource 'https://nexus.poynt.com/content/repositories/releases/com/google/android/gms/play-services-analytics/9.0.0/play-services-analytics-9.0.0.pom'.
            > Could not GET 'https://nexus.poynt.com/content/repositories/releases/com/google/android/gms/play-services-analytics/9.0.0/play-services-analytics-9.0.0.pom'. Received status code 401 from server: Unauthorized

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

How do I resolve this problem?

    
asked by anonymous 18.07.2016 / 21:06

1 answer

3

The 9.0.0 version of com.google.android.gms:* and com.google.firebase:* packages are launched directly in the SDK. It is therefore necessary to upgrade to the latest version available.

In Android Studio:

  • Click Tools > Android > SDK Manager
  • Select the SDK Tools tab
  • Select and install Google Play Services (rev 30) and Google Repository (rev 26).
  • Synchronize and Compile your project.
18.07.2016 / 21:06