Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. /*
  2. In your root-level (project-level) Gradle file (build.gradle), add rules to include the Google Services plugin. Check that you have Google's Maven repository, as well.
  3. */
  4.  
  5. buildscript {
  6.  
  7. repositories {
  8. // Check that you have the following line (if not, add it):
  9. google() // Google's Maven repository
  10. }
  11.  
  12. dependencies {
  13. // ...
  14.  
  15. // Add the following line:
  16. classpath 'com.google.gms:google-services:4.3.0' // Google Services plugin
  17. }
  18. }
  19.  
  20. allprojects {
  21. // ...
  22.  
  23. repositories {
  24. // Check that you have the following line (if not, add it):
  25. google() // Google's Maven repository
  26. // ...
  27. }
  28. }
  29.  
  30. /*
  31. In your module (app-level) Gradle file (usually app/build.gradle), add a line to the bottom of the file.
  32. */
  33. apply plugin: 'com.android.application'
  34.  
  35. android {
  36. // ...
  37. }
  38.  
  39. // Add the following line to the bottom of the file:
  40. apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement