Android does not resolve Firebase dependencies

Asked

Viewed 392 times

0

I am having error in solving the dependencies of Gradle:

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 can I solve this problem?

1 answer

3

The version 9.0.0 of packages com.google.android.gms:* and com.google.firebase:* are launched directly into the SDK. Soon it is necessary to update your version to the latest available.

In Android Studio:

  • Click on Tools > Android > SDK Manager
  • Select the tab SDK Tools tab
  • Select and install Google Play Services (rev 30) and Google Repository (rev 26).
  • Sync and compile your project.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.