- Home /
Android Dependencies fail to resolve when adding Firebase. (Graddle Failed to fetch dependencies)
I don't know what caused this, the project worked perfectly a few days ago, but then I decided to remove Firebase.Storage, then add Firebase.Authentication and Firebase.Database and the resolution started to fail.
This is the error message:
Gradle failed to fetch dependencies.
Failed to run 'C:\Users\Ulikander\Documents\MoreliAR2019\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "C:\Users\Ulikander\Documents\MoreliAR2019\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=D:/Program Files/Unity/2019.4.1f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=C:\Users\Ulikander\Documents\MoreliAR2019\Assets\Plugins\Android" "-PMAVEN_REPOS=file:///C:/Users/Ulikander/Documents/MoreliAR2019/Assets/Firebase/m2repository" "-PPACKAGES_TO_COPY=com.google.firebase:firebase-database:19.3.0;com.google.firebase:firebase-analytics:17.4.1;com.google.firebase:firebase-database-unity:6.15.2;com.google.firebase:firebase-common:19.3.1;com.google.firebase:firebase-analytics:17.5.0;com.google.android.gms:play-services-base:17.4.0;com.google.firebase:firebase-app-unity:6.16.0;com.google.firebase:firebase-auth:19.3.2;com.google.firebase:firebase-auth-unity:6.16.0" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=3.4.0"'
stdout:
> Configure project :
ANDROID_HOME: D:/Program Files/Unity/2019.4.1f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK
MAVEN_REPOS: name=Google url=https://dl.google.com/dl/android/maven2/
MAVEN_REPOS: name=maven url=https://dl.google.com/dl/android/maven2/
MAVEN_REPOS: name=maven2 url=file:/C:/Users/Ulikander/Documents/MoreliAR2019/Assets/Firebase/m2repository/
MAVEN_REPOS: name=MavenLocal url=file:/C:/Users/Ulikander/.m2/repository
MAVEN_REPOS: name=BintrayJCenter url=https://jcenter.bintray.com/
MAVEN_REPOS: name=MavenRepo url=https://repo.maven.apache.org/maven2/
PACKAGES_TO_COPY: com.google.firebase:firebase-database:19.3.0
PACKAGES_TO_COPY: com.google.firebase:firebase-analytics:17.4.1
PACKAGES_TO_COPY: com.google.firebase:firebase-database-unity:6.15.2
PACKAGES_TO_COPY: com.google.firebase:firebase-common:19.3.1
PACKAGES_TO_COPY: com.google.firebase:firebase-analytics:17.5.0
PACKAGES_TO_COPY: com.google.android.gms:play-services-base:17.4.0
PACKAGES_TO_COPY: com.google.firebase:firebase-app-unity:6.16.0
PACKAGES_TO_COPY: com.google.firebase:firebase-auth:19.3.2
PACKAGES_TO_COPY: com.google.firebase:firebase-auth-unity:6.16.0
TARGET_DIR: C:\Users\Ulikander\Documents\MoreliAR2019\Assets\Plugins\Android
> Configure project :
Resolution attempt 1: packages [com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-database-unity:6.15.2, com.google.firebase:firebase-common:19.3.1, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-app-unity:6.16.0, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-auth:19.3.2, com.google.firebase:firebase-auth-unity:6.16.0]
Resolve failed due to com.google.firebase:firebase-app-unity:6.16.0 missing for project :, attempted to use com.google.firebase:firebase-app-unity:6.16.0, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.firebase:firebase-app-unity:6.16.0.
Resolve failed due to com.google.firebase:firebase-auth-unity:6.16.0 missing for project :, attempted to use com.google.firebase:firebase-auth-unity:6.16.0, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.firebase:firebase-auth-unity:6.16.0.
Resolution attempt: 1, conflicts detected: true, updated packages: true
Resolution attempt 2: packages [com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-auth-unity:6.16.0+, com.google.firebase:firebase-common:19.3.1, com.google.firebase:firebase-database-unity:6.15.2, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-app-unity:6.16.0+, com.google.firebase:firebase-auth:19.3.2]
Resolve failed due to com.google.firebase:firebase-auth-unity:6.16.0+ missing for project :, attempted to use com.google.firebase:firebase-auth-unity:6.16.0+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-auth-unity:6.16.0+ as no versions of com.google.firebase:firebase-auth-unity are available.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-auth-unity/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-auth-unity/
- file:/C:/Users/Ulikander/Documents/MoreliAR2019/Assets/Firebase/m2repository/com/google/firebase/firebase-auth-unity/maven-metadata.xml
- file:/C:/Users/Ulikander/Documents/MoreliAR2019/Assets/Firebase/m2repository/com/google/firebase/firebase-auth-unity/
- file:/C:/Users/Ulikander/.m2/repository/com/google/firebase/firebase-auth-unity/maven-metadata.xml
- file:/C:/Users/Ulikander/.m2/repository/com/google/firebase/firebase-auth-unity/
- https://jcenter.bintray.com/com/google/firebase/firebase-auth-unity/maven-metadata.xml
- https://jcenter.bintray.com/com/google/firebase/firebase-auth-unity/
- https://repo.maven.apache.org/maven2/com/google/firebase/firebase-auth-unity/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/google/firebase/firebase-auth-unity/
Resolve failed due to com.google.firebase:firebase-app-unity:6.16.0+ missing for project :, attempted to use com.google.firebase:firebase-app-unity:6.16.0+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-app-unity:6.16.0+ as no versions of com.google.firebase:firebase-app-unity are available.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-app-unity/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-app-unity/
- file:/C:/Users/Ulikander/Documents/MoreliAR2019/Assets/Firebase/m2repository/com/google/firebase/firebase-app-unity/maven-metadata.xml
- file:/C:/Users/Ulikander/Documents/MoreliAR2019/Assets/Firebase/m2repository/com/google/firebase/firebase-app-unity/
- file:/C:/Users/Ulikander/.m2/repository/com/google/firebase/firebase-app-unity/maven-metadata.xml
- file:/C:/Users/Ulikander/.m2/repository/com/google/firebase/firebase-app-unity/
- https://jcenter.bintray.com/com/google/firebase/firebase-app-unity/maven-metadata.xml
- https://jcenter.bintray.com/com/google/firebase/firebase-app-unity/
- https://repo.maven.apache.org/maven2/com/google/firebase/firebase-app-unity/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/google/firebase/firebase-app-unity/
Resolution attempt: 2, conflicts detected: true, updated packages: true
Resolution attempt 3: packages [com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-common:19.3.1, com.google.firebase:firebase-database-unity:6.15.2, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-auth-unity:6.16.+, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-app-unity:6.16.+, com.google.firebase:firebase-auth:19.3.2]
Resolve failed due to com.google.firebase:firebase-auth-unity:6.16.+ missing for project :, attempted to use com.google.firebase:firebase-auth-unity:6.16.+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-auth-unity:6.16.+ as no versions of com.google.firebase:firebase-auth-unity are available.
Resolve failed due to com.google.firebase:firebase-app-unity:6.16.+ missing for project :, attempted to use com.google.firebase:firebase-app-unity:6.16.+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-app-unity:6.16.+ as no versions of com.google.firebase:firebase-app-unity are available.
Resolution attempt: 3, conflicts detected: true, updated packages: true
Resolution attempt 4: packages [com.google.firebase:firebase-app-unity:6.16+, com.google.firebase:firebase-auth-unity:6.16+, com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-common:19.3.1, com.google.firebase:firebase-database-unity:6.15.2, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-auth:19.3.2]
Resolve failed due to com.google.firebase:firebase-app-unity:6.16+ missing for project :, attempted to use com.google.firebase:firebase-app-unity:6.16+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-app-unity:6.16+ as no versions of com.google.firebase:firebase-app-unity are available.
Resolve failed due to com.google.firebase:firebase-auth-unity:6.16+ missing for project :, attempted to use com.google.firebase:firebase-auth-unity:6.16+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-auth-unity:6.16+ as no versions of com.google.firebase:firebase-auth-unity are available.
Resolution attempt: 4, conflicts detected: true, updated packages: true
Resolution attempt 5: packages [com.google.firebase:firebase-auth-unity:6.+, com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-common:19.3.1, com.google.firebase:firebase-database-unity:6.15.2, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-app-unity:6.+, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-auth:19.3.2]
Resolve failed due to com.google.firebase:firebase-auth-unity:6.+ missing for project :, attempted to use com.google.firebase:firebase-auth-unity:6.+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-auth-unity:6.+ as no versions of com.google.firebase:firebase-auth-unity are available.
Resolve failed due to com.google.firebase:firebase-app-unity:6.+ missing for project :, attempted to use com.google.firebase:firebase-app-unity:6.+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-app-unity:6.+ as no versions of com.google.firebase:firebase-app-unity are available.
Resolution attempt: 5, conflicts detected: true, updated packages: true
Resolution attempt 6: packages [com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-common:19.3.1, com.google.firebase:firebase-database-unity:6.15.2, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-app-unity:6+, com.google.firebase:firebase-auth-unity:6+, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-auth:19.3.2]
Resolve failed due to com.google.firebase:firebase-app-unity:6+ missing for project :, attempted to use com.google.firebase:firebase-app-unity:6+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-app-unity:6+ as no versions of com.google.firebase:firebase-app-unity are available.
Resolve failed due to com.google.firebase:firebase-auth-unity:6+ missing for project :, attempted to use com.google.firebase:firebase-auth-unity:6+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-auth-unity:6+ as no versions of com.google.firebase:firebase-auth-unity are available.
Resolution attempt: 6, conflicts detected: true, updated packages: true
Resolution attempt 7: packages [com.google.firebase:firebase-app-unity:+, com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-common:19.3.1, com.google.firebase:firebase-database-unity:6.15.2, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-auth-unity:+, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-auth:19.3.2]
Resolve failed due to com.google.firebase:firebase-app-unity:+ missing for project :, attempted to use com.google.firebase:firebase-app-unity:+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-app-unity:+ as no versions of com.google.firebase:firebase-app-unity are available.
Resolve failed due to com.google.firebase:firebase-auth-unity:+ missing for project :, attempted to use com.google.firebase:firebase-auth-unity:+, failed due to org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.google.firebase:firebase-auth-unity:+ as no versions of com.google.firebase:firebase-auth-unity are available.
Resolution attempt: 7, conflicts detected: true, updated packages: false
Unable to find a set of non-conflicting artifacts for packages [com.google.firebase:firebase-app-unity:+, com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-common:19.3.1, com.google.firebase:firebase-database-unity:6.15.2, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-auth-unity:+, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-auth:19.3.2].
version locked packages: []
non-version locked packages: [com.google.firebase:firebase-app-unity:+, com.google.firebase:firebase-analytics:17.5.0, com.google.firebase:firebase-common:19.3.1, com.google.firebase:firebase-database-unity:6.15.2, com.google.android.gms:play-services-base:17.4.0, com.google.firebase:firebase-auth-unity:+, com.google.firebase:firebase-database:19.3.0, com.google.firebase:firebase-auth:19.3.2]
> Task :copyPackages
Copied artifacts:
androidx.annotation.annotation-1.1.0.jar
androidx.arch.core.core-common-2.0.0.jar
androidx.arch.core.core-runtime-2.0.0.aar
androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar
androidx.collection.collection-1.0.0.jar
androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar
androidx.core.core-1.2.0.aar
androidx.cursoradapter.cursoradapter-1.0.0.aar
androidx.customview.customview-1.0.0.aar
androidx.documentfile.documentfile-1.0.0.aar
androidx.drawerlayout.drawerlayout-1.0.0.aar
androidx.fragment.fragment-1.0.0.aar
androidx.interpolator.interpolator-1.0.0.aar
androidx.legacy.legacy-support-core-ui-1.0.0.aar
androidx.legacy.legacy-support-core-utils-1.0.0.aar
androidx.lifecycle.lifecycle-common-2.0.0.jar
androidx.lifecycle.lifecycle-livedata-2.0.0.aar
androidx.lifecycle.lifecycle-livedata-core-2.0.0.aar
androidx.lifecycle.lifecycle-runtime-2.0.0.aar
androidx.lifecycle.lifecycle-viewmodel-2.0.0.aar
androidx.loader.loader-1.0.0.aar
androidx.localbroadcastmanager.localbroadcastmanager-1.0.0.aar
androidx.print.print-1.0.0.aar
androidx.slidingpanelayout.slidingpanelayout-1.0.0.aar
androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.aar
androidx.versionedparcelable.versionedparcelable-1.1.0.aar
androidx.viewpager.viewpager-1.0.0.aar
com.google.android.gms.play-services-ads-identifier-17.0.0.aar
com.google.android.gms.play-services-base-17.4.0.aar
com.google.android.gms.play-services-basement-17.4.0.aar
com.google.android.gms.play-services-measurement-17.5.0.aar
com.google.android.gms.play-services-measurement-api-17.5.0.aar
com.google.android.gms.play-services-measurement-base-17.5.0.aar
com.google.android.gms.play-services-measurement-impl-17.5.0.aar
com.google.android.gms.play-services-measurement-sdk-17.5.0.aar
com.google.android.gms.play-services-measurement-sdk-api-17.5.0.aar
com.google.android.gms.play-services-stats-17.0.0.aar
com.google.android.gms.play-services-tasks-17.2.0.aar
com.google.firebase.firebase-analytics-17.5.0.aar
com.google.firebase.firebase-auth-19.3.2.aar
com.google.firebase.firebase-auth-interop-19.0.0.aar
com.google.firebase.firebase-common-19.3.1.aar
com.google.firebase.firebase-components-16.0.0.aar
com.google.firebase.firebase-database-19.3.0.aar
com.google.firebase.firebase-database-collection-17.0.1.aar
com.google.firebase.firebase-database-unity-6.15.2.aar
com.google.firebase.firebase-installations-16.3.2.aar
com.google.firebase.firebase-installations-interop-16.0.0.aar
com.google.firebase.firebase-measurement-connector-18.0.0.aar
Missing artifacts:
com.google<message truncated>
Did you managed to solve it? If so, how? I am having a similar problem. I had Firebase $$anonymous$$essaging and recently added Dynamic Links. Same version v.6.4.0 and now I can't build.
$$anonymous$$ight be related to windows max path length. Try moving the project to the root of your drive (or making a folder junction might work too)
Your answer
![](https://koobas.hobune.stream/wayback/20220613013245im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
"Resolving Android Dependencies" at every start... 1 Answer
Merging multiple build.gradle file 0 Answers
Can not resolve dependencies for Android 0 Answers
"Gradle failed to fetch dependencies" 3 Answers
Unity + Admob dependencies 0 Answers