Ionic and google maps error


#1

I’m getting the following error while executing ionic cordova run android

import com.google.android.gms.maps.model.MapStyleOptions;
^
symbol: class MapStyleOptions

/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:282: error: cannot find symbol
map.setMinZoomPreference((float)zoom.getDouble(“minZoom”));
^
symbol: method setMinZoomPreference(float)
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:285: error: cannot find symbol
map.setMaxZoomPreference((float)zoom.getDouble(“maxZoom”));
^
symbol: method setMaxZoomPreference(float)
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:291: error: cannot find symbol
map.setOnCameraIdleListener(PluginMap.this);
^
symbol: method setOnCameraIdleListener(PluginMap)
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:292: error: cannot find symbol
map.setOnCameraMoveCanceledListener(PluginMap.this);
^

symbol: method setOnCameraMoveCanceledListener(PluginMap)

location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:293: error: cannot find symbol
map.setOnCameraMoveListener(PluginMap.this);
^
symbol: method setOnCameraMoveListener(PluginMap)
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:294: error: cannot find symbol
map.setOnCameraMoveStartedListener(PluginMap.this);
^
symbol: method setOnCameraMoveStartedListener(PluginMap)
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:347: error: cannot find symbol
map.setOnCameraIdleListener(new GoogleMap.OnCameraIdleListener() {
^
symbol: class OnCameraIdleListener
location: class GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:366: error: cannot find symbol
map.setOnCameraIdleListener(new GoogleMap.OnCameraIdleListener() {
^
symbol: class OnCameraIdleListener
location: class GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:655: error: cannot find symbol
map.setOnCircleClickListener(null);
^
symbol: method setOnCircleClickListener()
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:657: error: cannot find symbol
map.setOnCameraIdleListener(null);
^
symbol: method setOnCameraIdleListener()
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:658: error: cannot find symbol
map.setOnCameraMoveCanceledListener(null);
^
symbol: method setOnCameraMoveCanceledListener()
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:659: error: cannot find symbol
map.setOnCameraMoveListener(null);
^
symbol: method setOnCameraMoveListener()
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:734: error: cannot find symbol
String markerTag = (String) marker.getTag();
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:764: error: cannot find symbol
if ((marker.getTag() + “”).startsWith(“markercluster_”)){
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:952: error: cannot find symbol
String markerTag = (String) marker.getTag();
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:976: error: cannot find symbol
if ((marker.getTag() + “”).startsWith(“markercluster_”)){
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:1104: error: cannot find symbol
MapStyleOptions styleOptions = new MapStyleOptions(results.styles);
^
symbol: class MapStyleOptions
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:1104: error: cannot find symbol
MapStyleOptions styleOptions = new MapStyleOptions(results.styles);
^
symbol: class MapStyleOptions
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:1142: error: cannot find symbol
map.setMinZoomPreference((float)zoom.getDouble(“minZoom”));
^
symbol: method setMinZoomPreference(float)
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:1145: error: cannot find symbol
map.setMaxZoomPreference((float)zoom.getDouble(“maxZoom”));
^
symbol: method setMaxZoomPreference(float)
location: variable map of type GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:1446: error: cannot find symbol

              map.setOnCameraIdleListener(new GoogleMap.OnCameraIdleListener() {
                                                       ^

symbol: class OnCameraIdleListener
location: class GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:1482: error: cannot find symbol
map.setOnCameraIdleListener(new GoogleMap.OnCameraIdleListener() {
^
symbol: class OnCameraIdleListener
location: class GoogleMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:1992: error: cannot find symbol
String clusterId_markerId = marker.getTag() + “”;
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2047: error: cannot find symbol
String markerTag = marker.getTag() + “”;
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2060: error: cannot find symbol
if ((marker.getTag() + “”).startsWith(“markercluster_”)){
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2072: error: cannot find symbol
if ((marker.getTag() + “”).startsWith(“markercluster_”)){
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2084: error: cannot find symbol

if ((marker.getTag() + "").startsWith("markercluster_")){

           ^

symbol: method getTag()
location: variable marker of type Marker

/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2095: error: cannot find symbol
if ((marker.getTag() + “”).startsWith(“markercluster_”)){
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2107: error: cannot find symbol
String markerTag = marker.getTag() + “”;
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2136: error: cannot find symbol
if (marker.getTag() == null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2141: error: cannot find symbol
String markerTag = (String) marker.getTag();
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2150: error: cannot find symbol
if (marker.getTag() == null) {
^

symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2155: error: cannot find symbol
String markerTag = (String) marker.getTag();
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2446: error: method does not override or implement a method from a supertype
@Override
^
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2456: error: method does not override or implement a method from a supertype
@Override
^
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2466: error: method does not override or implement a method from a supertype
@Override
^
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2475: error: method does not override or implement a method from a supertype
@Override
^
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2481: error: cannot find symbol

this.isDragging = reason == REASON_GESTURE;
                            ^

symbol: variable REASON_GESTURE
location: class PluginMap
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:2597: error: cannot find symbol
String markerTag = activeMarker.getTag() + “”;
^
symbol: method getTag()
location: variable activeMarker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginCircle.java:60: error: cannot find symbol
circleOptions.clickable(false);
^
symbol: method clickable(boolean)
location: variable circleOptions of type CircleOptions
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:157: error: cannot find symbol
marker.setTag(null);
^
symbol: method setTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:249: error: cannot find symbol
markerOptions.zIndex((float) opts.getDouble(“zIndex”));
^
symbol: method zIndex(float)
location: variable markerOptions of type MarkerOptions
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:275: error: cannot find symbol
marker.setTag(markerId);
^
symbol: method setTag(String)
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:810: error: cannot find symbol
if (marker == null || marker.getTag() == null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:817: error: cannot find symbol
String iconCacheKey = “marker_icon_” + marker.getTag();
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:818: error: cannot find symbol
marker.setTag(null);
^
symbol: method setTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:1010: error: cannot find symbol
String markerTag = marker.getTag() + “”;
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:1043: error: cannot find symbol
if (marker == null || marker.getTag() == null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:1065: error: cannot find symbol
if (bitmapDescriptor == null || marker == null || marker.getTag() == null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarkerCluster.java:451: error: cannot find symbol

        marker.setTag(clusterId_markerId);
              ^

symbol: method setTag(String)
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarkerCluster.java:626: error: cannot find symbol
if (marker != null && marker.getTag() != null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginGroundOverlay.java:161: error: cannot find symbol
groundOverlay.setTag(null);
^
symbol: method setTag()
location: variable groundOverlay of type GroundOverlay
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginTileOverlay.java:42: error: cannot find symbol
options.transparency((float)(1 - opts.getDouble(“opacity”)));
^
symbol: method transparency(float)
location: variable options of type TileOverlayOptions
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.
60 errors
:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘: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.

BUILD FAILED

Total time: 7.102 secs
Error: /home/renan/Code/cartdeliverapp/platforms/android/gradlew: Command failed with exit code 1 Error output:
Picked up JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMap.java:52: error: cannot find symbol
import com.google.android.gms.maps.model.MapStyleOptions;
^
symbol: class MapStyleOptions
symbol: method setTag(String)
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:810: error: cannot find symbol
if (marker == null || marker.getTag() == null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:817: error: cannot find symbol
String iconCacheKey = "marker_icon
" + marker.getTag();
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:818: error: cannot find symbol
marker.setTag(null);
^
symbol: method setTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:1010: error: cannot find symbol
String markerTag = marker.getTag() + “”;
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:1043: error: cannot find symbol
if (marker == null || marker.getTag() == null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarker.java:1065: error: cannot find symbol
if (bitmapDescriptor == null || marker == null || marker.getTag() == null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarkerCluster.java:451: error: cannot find symbol
marker.setTag(clusterId_markerId);
^
symbol: method setTag(String)
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginMarkerCluster.java:626: error: cannot find symbol
if (marker != null && marker.getTag() != null) {
^
symbol: method getTag()
location: variable marker of type Marker
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginGroundOverlay.java:161: error: cannot find symbol
groundOverlay.setTag(null);
^
symbol: method setTag()
location: variable groundOverlay of type GroundOverlay
/home/renan/Code/cartdeliverapp/platforms/android/src/plugin/google/maps/PluginTileOverlay.java:42: error: cannot find symbol
options.transparency((float)(1 - opts.getDouble(“opacity”)));
^
symbol: method transparency(float)
location: variable options of type TileOverlayOptions
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.
60 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘: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.

[ERROR] An error occurred while running cordova run android (exit code 1).