title: Failed to resolve: play-services-tasks
body: <p>I have been tryong to add FCM to my android application for almost 48 hours now. I am keep on failing with these two errors on Android Studio. I have tried all the solutions in this <a href="https://stackoverflow.com/questions/46417939/failed-to-resolve-com-google-android-gms-play-services-auth11-4-0">post</a>. Still I couldn't fix it. </p>
  
  <p>I want firebase cloud messaging to be integrated in my app. So I did the followings. </p>
  
  <ul>
  <li>Created an app in the firebase console</li>
  <li>Included the .json config file</li>
  <li>Added the SDK</li>
  <li><code>implementation 'com.google.firebase:firebase-messaging:17.0.0'</code>
       (In the app level gradle)</li>
  <li><code>apply plugin: 'com.google.gms.google-services'</code> (In the app level gradle file last
  line)</li>
  <li><code>classpath 'com.google.gms:google-services:4.0.1'</code>
  (In the project level gradle)  </li>
  <li>Added the repository
  <code>google()</code> (In the project level gradle)</li>
  </ul>
  
  <p>I have tried syncing many times and I keep on getting the error</p>
  
  <blockquote>
    <p>Failed to resolve: play-services-tasks Open File</p>
    
    <p>Failed to resolve: play-services-basement Open File</p>
  </blockquote>
  
  <p>On a side note, I am using the gradle plugin 3.1.3</p>
  
  <pre><code>    classpath 'com.android.tools.build:gradle:3.1.3'
  </code></pre>
  
  <p>Can someone please give me a hand here please. </p>