# Ionic pro build fail cordova-plugin

**URL:** <https://forum.ionicframework.com/t/ionic-pro-build-fail-cordova-plugin/122862>\
**Category:** Appflow\
**Created:** [February 27, 2018, 2:45pm UTC](https://forum.ionicframework.com/t/ionic-pro-build-fail-cordova-plugin/122862 "2018-02-27T14:45:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beleriand](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@beleriand](https://forum.ionicframework.com/u/beleriand)\
**Post date:** [February 27, 2018, 2:45pm UTC](https://forum.ionicframework.com/t/ionic-pro-build-fail-cordova-plugin/122862/1 "2018-02-27T14:45:06Z")

</div>

After adding cordova-plugin to my project I am getting the following error. None of the possible solutions that I tried worked for me.

```auto
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:86: error: cannot find symbol
    GoogleMap.OnInfoWindowLongClickListener, GoogleMap.OnInfoWindowCloseListener, GoogleMap.OnMyLocationClickListener, GoogleMap.OnPoiClickListener {
                                                                                           ^
  symbol: class OnMyLocationClickListener
  location: class GoogleMap
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:337: error: cannot find symbol
              map.setOnMyLocationClickListener(PluginMap.this);
                 ^
  symbol: method setOnMyLocationClickListener(PluginMap)
  location: variable map of type GoogleMap
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:768: error: cannot find symbol
                  map.setOnMyLocationClickListener(null);
                     ^
  symbol: method setOnMyLocationClickListener()
  location: variable map of type GoogleMap
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:2500: error: method does not override or implement a method from a supertype
  @Override
  ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
:app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 22s
27 actionable tasks: 27 executed
Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:86: error: cannot find symbol
    GoogleMap.OnInfoWindowLongClickListener, GoogleMap.OnInfoWindowCloseListener, GoogleMap.OnMyLocationClickListener, GoogleMap.OnPoiClickListener {
                                                                                           ^
  symbol: class OnMyLocationClickListener
  location: class GoogleMap
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:337: error: cannot find symbol
              map.setOnMyLocationClickListener(PluginMap.this);
                 ^
  symbol: method setOnMyLocationClickListener(PluginMap)
  location: variable map of type GoogleMap
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:768: error: cannot find symbol
                  map.setOnMyLocationClickListener(null);
                     ^
  symbol: method setOnMyLocationClickListener()
  location: variable map of type GoogleMap
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:2500: error: method does not override or implement a method from a supertype
  @Override
  ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 22s
cordova build android failed
Running after script...
$ run "clean-up"
Running Stage clean-up for Job: 5345523
ERROR: Job failed: exit status 1

```

---

<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:** [February 27, 2018, 5:56pm UTC](https://forum.ionicframework.com/t/ionic-pro-build-fail-cordova-plugin/122862/2 "2018-02-27T17:56:58Z")

</div>

One of the plugins you installed specified older Google Play Services SDK, but the maps plugin requires `11.8.0`.

Check out the `platform/android/app/build.prop` file, and make sure all versions of Google Play Services SDK are `11.8.0`, not `11.+` or `11.2.+`.

---

<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:48pm UTC](https://forum.ionicframework.com/t/ionic-pro-build-fail-cordova-plugin/122862/3 "2021-07-19T21:48:44Z")

</div>


