failed to resolve:

I am creating a new project and trying to implement some features from googles Fire base dependencies such as compile ‘, classpath ‘’ ‘ and sync my project with them. When trying to do so, I get this error:

Error:(25, 13) Failed to resolve:
<a href="openFile:M:/Downloads/CommunicationApp/app/build.gradle">Show in File</a><br><a href="">Show in Project Structure dialog</a>

and also this error:

  • Android: How to implement viewpager and views in single xml file
  • Why is Android 4.0 / Ice Cream Sandwich allocating so much heap memory?
  • What is the advantage of loaders over Asynctask in Android?
  • Best way to make game loop for Android using OpengGLSurface
  • Android app privacy policy
  • Does anyone have benchmarks (code & results) comparing performance of Android apps written in Xamarin C# and Java?
  • Error:Failed to resolve:
    <a href="openFile:M:/Downloads/CommunicationApp/app/build.gradle">Open File</a><br><a href="">Show in Project Structure dialog</a>

    If anyone knows a solution for me, many thanks!

    Related posts:

    How to create a Horizontal CardView using RecyclerView with only one card on the screen at a time
    Using jars that use java.beans classes (Introspector, BeanInfo or PropertyDescriptor)
    How does MenuItem.SHOW_AS_ACTION_IF_ROOM work?
    Gradle failed to build when proguard is activated
    Android ScrollView layout problem
    How to show InfoWindow using Android Maps Utility Library for Android
  • How can I dynamically create a list of all Android ui components programmatically? e.g. TextView, ImageView etc
  • Permission denied for android
  • Offline mode for android app using google maps api
  • “aapt.exe” exited with code 1 when building Mono for Android project
  • Android multiple line notification like Gmail app
  • Android sdk will not install - crashes when checking for jdk
  • 3 Solutions collect form web for “failed to resolve:”

    I faced the same issue when I tried to use firebase-messaging:10.2.0 and to fix that I did this:

    • On Android studio, go to the menu bar and click on Tools > Android > SDK Manager.
    • Click on the SDK Tools tab
    • check the Google Play services box as well as the Google Repository box.
    • Click on apply, it will prompt you before applying the new updates.
    • Click Ok and wait for the download
    • Sync your project again and everything is fine.

    Note: All libraries must use the exact same version specification (mixing versions can lead to runtime crashes). If you already have an existing dependency of google play services upgrade it to the same version as firebase.

    compile ''
    compile ''

    Hope that helps!

    Try to update Google Repository in Android SDKs Manager, and then re-sync gradle

    Update Google Play services and Google Repository in SDK Manager.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.