Hello community a better framework for hybrid apps!
I need some help.
i try to integrate plugin.google.maps using this tutorial https://github.com/wf9a5m75/ionic_test
and after install plugin and run “ionic build android” i get this exception
:compileDebugJava/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/GoogleMaps.java:126: error: cannot find symbol
root = (ViewGroup) webView.getParent();
^
symbol: method getParent()
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/GoogleMaps.java:184: error: cannot find symbol
webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
^
symbol: method setLayerType(int,<null>)
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/GoogleMaps.java:193: error: cannot find symbol
webView.setBackgroundColor(0);
^
symbol: method setBackgroundColor(int)
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/GoogleMaps.java:781: error: cannot find symbol
webView.setVisibility(View.GONE);
^
symbol: method setVisibility(int)
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/GoogleMaps.java:861: error: cannot find symbol
divTop - webView.getScrollY(),
^
symbol: method getScrollY()
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/GoogleMaps.java:863: error: cannot find symbol
divTop + divH - webView.getScrollY());
^
symbol: method getScrollY()
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:52: error: cannot find symbol
this.root = (ViewGroup) webView.getParent();
^
symbol: method getParent()
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:54: error: cannot find symbol
webView.setBackgroundColor(Color.TRANSPARENT);
^
symbol: method setBackgroundColor(int)
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:56: error: cannot find symbol
webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
^
symbol: method setLayerType(int,<null>)
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:129: error: cannot find symbol
int scrollY = webView.getScrollY();
^
symbol: method getScrollY()
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:177: error: incompatible types: CordovaWebView cannot be converted to View
frontLayer.removeView(webView);
^
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:188: error: incompatible types: CordovaWebView cannot be converted to View
root.addView(webView);
^
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:194: error: cannot find symbol
scrollView.scrollTo(webView.getScrollX(), webView.getScrollY());
^
symbol: method getScrollX()
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:194: error: cannot find symbol
scrollView.scrollTo(webView.getScrollX(), webView.getScrollY());
^
symbol: method getScrollY()
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:208: error: no suitable method found for removeView(CordovaWebView)
root.removeView(webView);
^
method ViewManager.removeView(View) is not applicable
(argument mismatch; CordovaWebView cannot be converted to View)
method ViewGroup.removeView(View) is not applicable
(argument mismatch; CordovaWebView cannot be converted to View)
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:215: error: incompatible types: CordovaWebView cannot be converted to View
frontLayer.addView(webView);
^
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:252: error: cannot find symbol
webView.requestFocus(View.FOCUS_DOWN);
^
symbol: method requestFocus(int)
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:257: error: cannot find symbol
int scrollY = webView.getScrollY();
^
symbol: method getScrollY()
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:283: error: cannot find symbol
webView.requestFocus(View.FOCUS_DOWN);
^
symbol: method requestFocus(int)
location: variable webView of type CordovaWebView
/Volumes/Archive/projects/mq/platforms/android/src/plugin/google/maps/MyPluginLayout.java:294: error: cannot find symbol
int scrollY = webView.getScrollY();
^
symbol: method getScrollY()
location: variable webView of type CordovaWebView
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
20 errors
FAILED
What’s wrong? Thank’s!