Compile error: cannot find symbol
See original GitHub issueHi 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:
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!
Issue Analytics
- State:
- Created 8 years ago
- Comments:34 (4 by maintainers)
Top Results From Across the Web
How to Resolve The Cannot Find Symbol Error in Java - Rollbar
The cannot find symbol error refers to a situation where the Java compiler is unable to find the symbol associated with a given...
Read more >The "Cannot find symbol" Compilation Error - Baeldung
When our code compiles, the compiler needs to verify all the identifiers we have. The error “cannot find symbol” means we're referring to ......
Read more >java - What does a "Cannot find symbol" or "Cannot resolve ...
A "Cannot find symbol" error means that the compiler cannot do this. Your code appears to be referring to something that the compiler...
Read more >What can cause the "cannot find symbol" error in Java?
The “cannot find symbol” error occurs mainly when we try to reference a variable that is not declared in the program which we...
Read more >What Causes “Cannot find symbol” Compilation Error in Java?
As the name suggests, the Java cannot find symbol error occurs when a required symbol cannot be found in the symbol table. Although...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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, thegetView()
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.
fixed in master (Version 1.2.7 and newer). Please reinstall.