question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PluginStreetViewPanorama.java:21: error: cannot find symbol

See original GitHub issue

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)

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
smxdevstcommented, May 11, 2018

same problem

0reactions
kapilSoni101commented, May 22, 2019

@wf9a5m75 i tried each and every thing but noting is worked for me what i do for fix above error?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Resolve The Cannot Find Symbol Error in Java - Rollbar
The cannot find symbol error refers to a situation where the Java compiler is unable to find the symbol associated with a given...
Read more >
java - What does a "Cannot find symbol" or "Cannot resolve ...
Firstly, it is a compilation error1. It means that either there is a problem in your Java source code, or there is a...
Read more >
Hi, guys, I implemented the map using the steps ... - Ionic Forum
... \android\src\plugin\google\maps\PluginStreetViewPanorama.java:21: error: cannot find symbol import com.google.android.gms.maps.model.
Read more >
The "Cannot find symbol" Compilation Error - Baeldung
The “cannot find symbol” error comes up mainly when we try to use a variable that's not defined or declared in our program....
Read more >
How To Solve Java Cannot Find Symbol - Position Is Everything
Java cannot find symbol is an error that appears when you try to reference a variable you have not declared. Click here to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found