Google Maps Android API在客户端和软件包之间不匹配

时间:2016-08-05 02:54:54

标签: android google-maps react-native google-play-services

class Foo: UIView {
    var someSubview: UIView!  // initializes automatically to nil

    lazy var initialBackgroundColor: UIColor? = {
        return self.someSubview.backgroundColor
    }()

    init() {
        super.init(frame: .zero)
        setup()          // do some other stuff
    }

    func setup() {
        someSubview = UIView()
        someSubview.backgroundColor = UIColor.whiteColor()
        addSubview(someSubview)
    }
}

这是我的版本,每次更新时我都会因为某种原因而再次努力,谷歌地图(react-native-maps)不想加载。

$ export|grep -i ld_lib
$ export LD_LIBRARY_PATH=/usr/local/lib/
$ python
Python 2.6.6 (r266:84292, Dec  7 2011, 20:48:22) 
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libnet
>>>  

我在SDK Manager中更新了Google Play服务。我一直在尝试使用08-04 22:51:16.947 4393 4393 I Google Maps Android API: Google Play services client version: 9452000 08-04 22:51:16.951 4393 4393 I Google Maps Android API: Google Play services package version: 9452480 代替错误。我尝试了 9.4.52 ,但在编译应用程序时无法找到它

我的模拟器使用的是Google Play Services版本32,Android 23版本16。 这就是我在手机中的内容:http://www.apkmirror.com/apk/google-inc/google-play-services/google-play-services-9-4-52-release/google-play-services-9-4-52-480-127739847-android-apk-download/

compileSdkVersion 23
buildToolsVersion "23.0.1"
compile 'com.google.android.gms:play-services-maps:9.4.0'

这是build.gradle

'+'

1 个答案:

答案 0 :(得分:2)

我以为我将所有StyleSheet添加到地图上,但只是意识到我没有这样做。 我添加了这个并且它有效:

 container: {
    position: 'absolute',
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
    width: 400,
    justifyContent: 'flex-end',
    alignItems: 'center',
  },
  map: {
    position: 'absolute',
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
  },

显然没有匹配的版本并不重要?