【问题标题】:I'm trying to install nativescript-google-maps-sdk in my nativescript angular 2 application我正在尝试在我的 nativescript angular 2 应用程序中安装 nativescript-google-maps-sdk
【发布时间】:2017-05-03 12:37:16
【问题描述】:

当我安装插件时,它会成功安装,但我在终端中收到以下消息:

nativescript-google-maps-sdk 3.0.0 for ios 不兼容 当前安装的框架版本 2.5.0。

这是我的 package.json

{
    "description": "NativeScript Application",
    "license": "SEE LICENSE IN <your-license-filename>",
    "readme": "NativeScript Application",
    "repository": "<fill-your-repository-here>",
    "nativescript": {
        "id": "org.nativescript.virtualreality",
        "tns-ios": {
            "version": "2.5.0"
        }
    },
    "dependencies": {
        "@angular/animations": "~4.0.0",
        "@angular/common": "~4.0.0",
        "@angular/compiler": "~4.0.0",
        "@angular/core": "~4.0.0",
        "@angular/forms": "~4.0.0",
        "@angular/http": "~4.0.0",
        "@angular/platform-browser": "~4.0.0",
        "@angular/platform-browser-dynamic": "~4.0.0",
        "@angular/router": "~4.0.0",
        "email-validator": "^1.0.7",
        "nativescript-angular": "~1.5.1",
        "nativescript-google-maps-sdk": "^2.0.2",
        "nativescript-plugin-firebase": "^3.11.4",
        "nativescript-telerik-ui": "^1.6.2",
        "nativescript-theme-core": "~1.0.2",
        "reflect-metadata": "~0.1.8",
        "rxjs": "~5.2.0",
        "tns-core-modules": "2.5.2",
        "zone.js": "~0.8.2"
    },
    "devDependencies": {
        "nativescript-dev-android-snapshot": "^0.*.*",
        "nativescript-dev-typescript": "~0.3.5",
        "typescript": "~2.1.0"
    }
}

由于 tns 3.0 仍处于 RC 阶段,我不想搞砸我的项目。在 2.5.* 版本的 Nativescript 中没有任何方法可以使用 google-maps

【问题讨论】:

    标签: google-maps nativescript angular2-nativescript


    【解决方案1】:

    您必须将 nativescript 模块升级到版本 ~3... "tns-core-modules": "2.5.2",

    【讨论】:

    • 我确实做到了,现在可以了,感谢您的回复
    猜你喜欢
    • 2021-12-13
    • 1970-01-01
    • 1970-01-01
    • 2020-02-29
    • 1970-01-01
    • 2017-01-12
    • 1970-01-01
    • 1970-01-01
    • 2019-12-06
    相关资源
    最近更新 更多