title: How to add dependencies to project's top-level build.gradle file?
body: <p>I'm trying a sample code which implements <strong>Google Cloud Messaging (GCM)</strong> and that is provided by google itself, <a href="https://developers.google.com/cloud-messaging/android/client#get-config" rel="nofollow noreferrer"><strong>GCM Demo</strong></a>.</p>
  
  <p>I don't know how exactly I can add the dependencies  </p>
  
  <ul>
  <li>List item</li>
  <li>Add the dependency to your project's top-level build.gradle:</li>
  <li>When I go to Project Structure > Modules > Add and then select Module Dependency then a pop up screen appears for no module found to depend on.
  If there is another way I can add the dependencies then a help would be appreciated.I have attached an image regarding the same.</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/U16rg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U16rg.jpg" alt="enter image description here"></a></p>