street view causing build errors in android
See original GitHub issueBUILD FAILED in 16s (node:11693) UnhandledPromiseRejectionWarning: Error: platforms/android/gradlew: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17: error: cannot find symbol import com.google.android.gms.maps.model.StreetViewSource; ^ symbol: class StreetViewSource location: package com.google.android.gms.maps.model platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87: error: cannot find symbol StreetViewSource source = “OUTDOOR”.equals(cameraOpts.getString(“source”)) ? ^ symbol: class StreetViewSource location: class PluginStreetViewPanorama platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT; ^ symbol: variable StreetViewSource location: class PluginStreetViewPanorama platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT; ^ symbol: variable StreetViewSource location: class PluginStreetViewPanorama platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280: error: cannot find symbol StreetViewSource source = “OUTDOOR”.equals(cameraOpts.getString(“source”)) ? ^ symbol: class StreetViewSource platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT; ^ symbol: variable StreetViewSource platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
I’m submitting a … (check one with “x”)
- question
- any problem or bug report
- feature request
If you choose ‘problem or bug report’, please select OS: (check one with “x”)
- Android
- iOS
cordova information: (run $> cordova plugin list
)
insert the output from the command here
branch-cordova-sdk 3.0.0 “branch-cordova-sdk” com.googlemaps.ios 2.7.0 “Google Maps SDK for iOS” cordova-background-geolocation-lt 2.12.1 “BackgroundGeolocation” cordova-clipboard 1.2.1 “Clipboard” cordova-custom-config 5.0.2 “cordova-custom-config” cordova-open-native-settings 1.5.1 “Native settings” cordova-plugin-actionsheet 2.3.3 “ActionSheet” cordova-plugin-android-permissions 1.0.0 “Permissions” cordova-plugin-app-version 0.1.9 “AppVersion” cordova-plugin-apprate 1.3.0 “AppRate” cordova-plugin-background-fetch 5.4.0 “CDVBackgroundFetch” cordova-plugin-camera 4.0.3 “Camera” cordova-plugin-cocoalumberjack 0.0.4 “CocoaLumberjack” cordova-plugin-compat 1.2.0 “Compat” cordova-plugin-customurlscheme 4.3.0 “Custom URL scheme” cordova-plugin-device 1.1.7 “Device” cordova-plugin-dialogs 2.0.1 “Notification” cordova-plugin-email-composer 0.8.15 “EmailComposer” cordova-plugin-facebook4 2.1.0 “Facebook Connect” cordova-plugin-file 4.3.3 “File” cordova-plugin-globalization 1.11.0 “Globalization” cordova-plugin-google-analytics 1.8.3 “Google Universal Analytics Plugin” cordova-plugin-googlemaps 2.3.4-beta-20180522-1712 “cordova-plugin-googlemaps” cordova-plugin-googleplus 5.3.0 “Google SignIn” cordova-plugin-inappbrowser 1.7.2 “InAppBrowser” cordova-plugin-insomnia 4.3.0 “Insomnia (prevent screen sleep)” cordova-plugin-network-information 1.3.4 “Network Information” cordova-plugin-splashscreen 4.1.0 “Splashscreen” cordova-plugin-statusbar 2.4.2 “StatusBar” cordova-plugin-tts 0.2.3 “TTS” cordova-plugin-whitelist 1.3.3 “Whitelist” cordova-plugin-x-socialsharing 5.4.0 “SocialSharing” cordova.plugins.diagnostic 3.9.2 “Diagnostic” es6-promise-plugin 4.2.2 “Promise” ionic-plugin-keyboard 2.2.1 “Keyboard” onesignal-cordova-plugin 2.4.0 “OneSignal Push Notifications” phonegap-plugin-mobile-accessibility 1.0.5-dev “Mobile Accessibility” uk.co.workingedge.phonegap.plugin.launchnavigator 4.2.0 “Launch Navigator”
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/google-maps”: “^4.8.2”,
Current behavior:
Expected behavior:
Screen capture or video record:
Related code, data or error log (please format your code or data):
The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.
Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.
Giving much information, you are waiting time is less.
Thank you for your cooperation.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (7 by maintainers)
Top GitHub Comments
You need to use
15.0.1
Did you read well? https://github.com/ionic-team/ionic-native-google-maps/issues/5#issuecomment-380693358