I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information: (run $> cordova plugin list)
com.googlemaps.ios 2.6.0 "Google Maps SDK for iOS"
cordova-android-play-services-gradle-release 1.3.0 "cordova-android-play-services-gradle-release"
cordova-plugin-camera 4.0.2 "Camera"
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.3.0-beta-20180415-2338 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
phonegap-plugin-push 2.1.3 "PushPlugin"
If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)
"@ionic-native/core": "^4.7.0",
"@ionic-native/google-maps": "^4.7.0",
Current behavior:
Compile app with command ionic cordova compile android hangs with error:
Error: cmd: Command failed with exit code 1 Error output:
C:\Users\Sam\Documents\Tapir\tapir-client-v2\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:21: error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
^
symbol: class StreetViewSource
location: package com.google.android.gms.maps.model
C:\Users\Sam\Documents\Tapir\tapir-client-v2\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:93: error: cannot find symbol
StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
^
symbol: class StreetViewSource
location: class PluginStreetViewPanorama
C:\Users\Sam\Documents\Tapir\tapir-client-v2\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:94: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
C:\Users\Sam\Documents\Tapir\tapir-client-v2\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:94: error: cannot find symbol
StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
^
symbol: variable StreetViewSource
location: class PluginStreetViewPanorama
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.
4 errors
FAILURE: Build failed with an exception.
Expected behavior:
Application compiles without errors.
StreetView is not ready to use.
By the way, your error says the Google Play Services SDK you installed is too old.
Right, I tried to update to later Google Play Services version to 12.1.0 (tried 11.8.0 before) but runs into another problem with com.google.firebase:firebase-messaging which only goes to version 12.0.1 but requires the same version as gms.
How do I compile my project without using StreetView?
As far as the official release note page, there is no 12.1.0.
https://developers.google.com/android/guides/releases
How do I compile my project without using StreetView?
You just use the master branch.
If you ask me how to solve the conflict, check out here.
https://github.com/ionic-team/ionic-native-google-maps/issues/5#issuecomment-380693358
That's strange.. https://github.com/mapsplugin/cordova-plugin-googlemaps/tree/multiple_maps says to use PLAY_SERVICES_VERSION="12.1.0". But I guess you're right. I used the master branch before but had problem with markers that wasn't clickable. So I followed this issue https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1809 where they said to use multiple_maps branch to solve it (I guess). But that's a different issue than this.
I'll try to solve the conflict before giving up on multiple_maps branch.
ping
You can close this issue. I'll try to find a way to get markers clickable in other threads.
ok
same problem
I am getting the same error. I have below configuration in package.json:
"cordova-plugin-googlemaps": "^2.4.6",
"@ionic-native/google-maps": "^4.9.1"
And in project.properties:
target=android-26
android.library.reference.1=CordovaLib
cordova.system.library.1=com.facebook.android:facebook-android-sdk:4.+
cordova.system.library.2=com.google.android.gms:play-services-auth:11.+
cordova.system.library.3=com.google.android.gms:play-services-identity:11.+
cordova.gradle.include.1=twitter-connect-plugin/offershare-twitter.gradle
cordova.system.library.4=com.android.support:support-v4:24.1.1+
cordova.system.library.5=com.squareup.okhttp3:okhttp:3.+
cordova.gradle.include.2=cordova-plugin-googlemaps/offershare-tbxml-android.gradle
cordova.system.library.6=com.google.android.gms:play-services-maps:11.+
cordova.system.library.7=com.google.android.gms:play-services-location:11.+
cordova.system.library.8=com.android.support:support-core-utils:26.1.0
How to avoid this build error?
cordova.system.library.6=com.google.android.gms:play-services-maps:11.+
cordova.system.library.7=com.google.android.gms:play-services-location:11.+
Use the latest versions
You meant to use the latest versions of play service instead of 11.+?
@wf9a5m75 i tried each and every thing but noting is worked for me what i do for fix above error?
Most helpful comment
same problem