cordova plugin with ionic
See original GitHub issueI’m submitting a … (check one with “x”) [ ] question [x] any problem or bug report [ ] feature request
The plugin version: (check one with “x”) [x] 2.0-beta3 (github) [x] 2.0 (npm)
If you choose ‘problem or bug report’, please select OS: (check one with “x”) [x] Android [ ] iOS
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(<null>)
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(<null>)
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(<null>)
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(<null>)
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(<null>)
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(<null>)
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(<null>)
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(<null>)
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(<null>)
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).
```
Issue Analytics
- State:
- Created 6 years ago
- Comments:32 (17 by maintainers)
Top Results From Across the Web
Cordova Community Plugins - Ionic Framework
Similar to Capacitor, Ionic's own native runtime, Cordova allows developers to access native device features, such as camera, keyboard, and geolocation, using a ......
Read more >cordova-plugin-ionic - npm
Ionic Cordova SDK. Latest version: 5.5.3, last published: 3 months ago. Start using cordova-plugin-ionic in your project by running `npm i ...
Read more >ionic-team/cordova-plugin-ionic: Ionic Cordova SDK - GitHub
Ionic Cordova SDK. Contribute to ionic-team/cordova-plugin-ionic development by creating an account on GitHub.
Read more >Using Cordova Plugins and Ionic Native - Capacitor
Using Cordova Plugins and Ionic Native. When developing an app that uses Capacitor, it's possible to use both Cordova and Ionic Native plugins....
Read more >Build your first Cordova plugin for Ionic Native - Medium
Build your first Cordova plugin for Ionic Native · 2. Create Cordova plugin using · 3. Call plugin in IONIC (without Ionic Native)...
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
But as requested, I provided the sample project that is not working. I can add some more code withing typescript that will use google maps plugin, but I don’t think that will fix the java compilation problem which has nothing to do with the ts code …
You can’t share your code, I can’t help you further more.