# How proper install the plugin google maps without compilation errors?

**URL:** <https://forum.ionicframework.com/t/how-proper-install-the-plugin-google-maps-without-compilation-errors/115613>\
**Category:** Ionic Native\
**Created:** [December 17, 2017, 12:42pm UTC](https://forum.ionicframework.com/t/how-proper-install-the-plugin-google-maps-without-compilation-errors/115613 "2017-12-17T12:42:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![temohpab](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@temohpab](https://forum.ionicframework.com/u/temohpab)\
**Post date:** [December 17, 2017, 12:42pm UTC](https://forum.ionicframework.com/t/how-proper-install-the-plugin-google-maps-without-compilation-errors/115613/1 "2017-12-17T12:42:28Z")

</div>

I’m trying to install the plugins how it’s explained here

> **[Ionic Framework](https://ionicframework.com/docs/native/google-maps/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

But when i’m trying to compile i’m facing this error

```auto
F:\xampp\htdocs\platforms\android\src\plugin\google\maps\PluginMap.java:2194: error: cannot find symbol
    String overlayId = groundOverlay.getTag() + "";
                                    ^
  symbol: method getTag()
  location: variable groundOverlay of type GroundOverlay
F:\xampp\htdocs\platforms\android\src\plugin\google\maps\PluginGroundOverlay.java:113: error: cannot find symbol
        groundOverlay.setTag("groundoverlay_" + idBase);
                     ^
  symbol: method setTag(String)
  location: variable groundOverlay of type GroundOverlay
F:\xampp\htdocs\platforms\android\src\plugin\google\maps\PluginGroundOverlay.java:169: error: cannot find symbol
                  groundOverlay.setTag(null);
                               ^
  symbol: method setTag(<null>)
  location: variable groundOverlay of type GroundOverlay
Note: F:\xampp\htdocs\platforms\android\src\plugin\google\maps\MyPluginLayout.java uses or overrides a deprecated AP
I.
Note: Recompile with -Xlint:deprecation for details.
:compileDebugJavaWithJavac FAILED

BUILD FAILED

```

I don’t know what i’m doing wrong, but if i do this

```auto

ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"

npm install --save @ionic-native/google-maps

```

The compilation fails

Thanks

---

<div class="post-metadata">

**Author:** ![wf9a5m75](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wf9a5m75/32/118692_2.png) [@wf9a5m75](https://forum.ionicframework.com/u/wf9a5m75)\
**Post date:** [December 18, 2017, 11:43pm UTC](https://forum.ionicframework.com/t/how-proper-install-the-plugin-google-maps-without-compilation-errors/115613/2 "2017-12-18T23:43:01Z")

</div>

The version of Google Play Services you specified is too old

---

<div class="post-metadata">

**Author:** ![vahidvdn](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vahidvdn/32/94016_2.png) [@vahidvdn](https://forum.ionicframework.com/u/vahidvdn)\
**Post date:** [January 8, 2018, 3:41pm UTC](https://forum.ionicframework.com/t/how-proper-install-the-plugin-google-maps-without-compilation-errors/115613/4 "2018-01-08T15:41:49Z")

</div>

I hadn’t install Google Play Services. Then I installed, but still get the same error. Any idea?

---

<div class="post-metadata">

**Author:** ![wf9a5m75](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wf9a5m75/32/118692_2.png) [@wf9a5m75](https://forum.ionicframework.com/u/wf9a5m75)\
**Post date:** [January 8, 2018, 5:26pm UTC](https://forum.ionicframework.com/t/how-proper-install-the-plugin-google-maps-without-compilation-errors/115613/5 "2018-01-08T17:26:38Z")

</div>

The maps plugin installs the latest google play services library from your computer. But the version of Google Play Services in your computer is too old.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:59pm UTC](https://forum.ionicframework.com/t/how-proper-install-the-plugin-google-maps-without-compilation-errors/115613/6 "2021-07-19T21:59:02Z")

</div>


