找不到符号导入com.google.android.gms.maps.model.StreetViewSource吗?

时间:2018-11-29 15:07:12

标签: google-maps ionic-framework ionic3

我正在开发一个Ionic项目,在构建应用程序时遇到了谷歌地图的错误。

import com.google.android.gms.maps.model.StreetViewSource;
                                        ^
  symbol:   class StreetViewSource
  location: package com.google.android.gms.maps.model
I:\Team SlowCoach\OfferShare\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:87: error: cannot find symbol
          StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
          ^
  symbol:   class StreetViewSource
  location: class PluginStreetViewPanorama
I:\Team SlowCoach\OfferShare\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:88: error: cannot find symbol
              StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
              ^
  symbol:   variable StreetViewSource
  location: class PluginStreetViewPanorama
I:\Team SlowCoach\OfferShare\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:88: error: cannot find symbol
              StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                                         ^
  symbol:   variable StreetViewSource
  location: class PluginStreetViewPanorama
I:\Team SlowCoach\OfferShare\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:280: error: cannot find symbol
              StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
              ^
  symbol: class StreetViewSource
I:\Team SlowCoach\OfferShare\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:281: error: cannot find symbol
                  StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                  ^
  symbol: variable StreetViewSource
I:\Team SlowCoach\OfferShare\platforms\android\src\plugin\google\maps\PluginStreetViewPanorama.java:281: error: cannot find symbol
                  StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                                             ^
  symbol: variable StreetViewSource

package.json 中:

"cordova-plugin-googlemaps": "^2.4.6",
"@ionic-native/google-maps": "^4.9.1"

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

我应该使用哪个版本的Google地图?

0 个答案:

没有答案