# Add Google Play Services to Processing

**URL:** https://discourse.processing.org/t/add-google-play-services-to-processing/21147
**Category:** Processing for Android
**Created:** [May 21, 2020, 7:12pm UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147 "2020-05-21T19:12:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Tagedik](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@Tagedik](https://discourse.processing.org/u/Tagedik)
#### Post date: [May 21, 2020, 7:12pm UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147/1 "2020-05-21T19:12:39Z")

</div>

I’m trying to add Google Play Services to my project so I can implement Admob and Play Games.  
I’ve followed this tutorial [https://developers.google.com/android/guides/setup](https://developers.google.com/android/guides/setup) and added com.google.android.gms:play-services-ads:19.1.0 to my build.gradle file, my top-level `build.gradle` contains a reference to the `google()`, and changed AndroidManifest as well, but I get the error “The import com.google.android cannot be resolved”.  
Adding a google play services jar is an old method, so how can I do it?

P.S: If my text is all messed up for you, I apologize. I’m new to the forum.

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [May 22, 2020, 8:48am UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147/2 "2020-05-22T08:48:40Z")

</div>

@Tagedik ===  
Are you using AS or Processing?

---

<div class="post-metadata">

### Author: ![Tagedik](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@Tagedik](https://discourse.processing.org/u/Tagedik)
#### Post date: [May 22, 2020, 10:26am UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147/3 "2020-05-22T10:26:29Z")

</div>

I’m using Processing

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [May 22, 2020, 10:39am UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147/4 "2020-05-22T10:39:50Z")

</div>

@Tagedik === ok; so how have you changed your gradle build?

---

<div class="post-metadata">

### Author: ![Tagedik](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@Tagedik](https://discourse.processing.org/u/Tagedik)
#### Post date: [May 22, 2020, 10:46am UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147/5 "2020-05-22T10:46:45Z")

</div>

Like i said, I added com.google.android.gms:play-services-ads:19.1.0 to my build.gradle file and made sure my top-level `build.gradle` contained a reference to the `google()`.

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [May 22, 2020, 1:08pm UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147/6 "2020-05-22T13:08:38Z")

</div>

@Tagedik === yes, you said that; but how have you done? where is your build.gradle?

---

<div class="post-metadata">

### Author: ![Mesalcode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mesalcode/32/9284_2.png) [@Mesalcode](https://discourse.processing.org/u/Mesalcode)
#### Post date: [May 27, 2020, 2:14pm UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147/9 "2020-05-27T14:14:16Z")

</div>

I am looking for a way to change the build.gradle file, but did not yet found one. Could you please tell me how you changed build.gradle?

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [May 27, 2020, 3:46pm UTC](https://discourse.processing.org/t/add-google-play-services-to-processing/21147/10 "2020-05-27T15:46:18Z")

</div>

@Mesalcode === you cannot find it using P5 before compiling! - That’s why i was asking “how have you done”… You can find it only using AS.
