cordova-plugin-googlemaps: Compile error: cannot find symbol

Hi everyone,

I am building an Ionic app and tried to implement this plugin into my app. I have followed the tutorial on https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Tutorial-for-Mac and it works great on iOS. However when I try to compile and run on Android, I get the following error: screen shot 2015-04-26 at 10 20 24

I googled the problem and didn’t have any progress, I tried the following steps and still no luck:

cordova plugim rm plugin.google.maps
cordova plugin rm com.google.playservices
cordova plugin add https://github.com/wf9a5m75/google-play-services#v23
cordova plugin add plugin.google.maps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"

Here is my list of plugins:

com.google.playservices 23.0.0 "Google Play Services for Android"
com.googlemaps.ios 1.9.2 "Google Map iOS SDK for Cordova"
com.ionic.keyboard 1.0.4 "Keyboard"
org.apache.cordova.console 0.2.13 "Console"
org.apache.cordova.device 0.3.0 "Device"
plugin.google.maps 1.2.5 "phonegap-googlemaps-plugin"
plugin.http.request 1.0.4 "phonegap-http-request"

Any help is much appreciated!

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 34 (4 by maintainers)

Most upvoted comments

Hey guys lets help @wf9a5m75 with the update, is an Open Source project, he doesn’t need to have all the responsibility to update it.

The ScrollEvent is deprecated, see here: https://github.com/apache/cordova-android/commit/581252febc2ca8c2ecbe7077047a34aae0ab25b5

webView.getParent() maybe this help, is from AppGyver about this plugin too. https://github.com/AppGyver/steroids/issues/588 CordovaWebView in Android v4 is an implementation file, and the implementation is in CordovaWebViewImp and it doesn’t extend WebView anymore so the getParent method is not available. But they are using it like: engine.getView().getParent();. engine is https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java that is working as a glue between the real WebView, the getView() method returns the webView instance.

I think that probably the other methods are the same because the WebView methods are not available anymore directly in CordovaWebView. Hope this help.