Ionic 3 - Native:尝试调用/访问<plugin-name>但是它的插件但是没有安装

时间:2018-04-03 14:20:35

标签: angular google-maps cordova ionic3 cordova-plugins

总结一下我的长篇故事,我试图添加一个谷歌地图,屏幕变成空白......我认为这个特定插件的问题,但不是 ......当我进行谷歌浏览器检查(在Android设备上运行应用程序)时,我意识到我有几个警告&#34; Native&#34; ......我找不到问题!我需要你的帮助,也许有些人已经在你生命的某个时候遇到过这些警告:

(请参阅链接中的错误图片:) ----&GT; plugins&LT; ----

这是我安装的插件列表:

> cordova plugin ls
card.io.cordova.mobilesdk 2.1.0 "CardIO"
com.googlemaps.ios 2.6.0 "Google Maps SDK for iOS"
com.paypal.cordova.mobilesdk 3.5.0 "PayPalMobile"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-apprate 1.3.0 "AppRate"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-dialogs 1.3.4 "Notification"
cordova-plugin-email-composer 0.8.11 "EmailComposer"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-globalization 1.0.8 "Globalization"
cordova-plugin-googlemaps 2.2.9 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.2-dev "StatusBar"
cordova-plugin-stripe 1.5.3 "cordova-plugin-stripe"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.2.1 "SocialSharing"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.3.3 "OneSignal Push Notifications"

我的离子信息:

cli packages: (...)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

全球套餐:

cordova (Cordova CLI) : 8.0.0

本地包裹:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0 ios 4.5.4 ios copy 4.5.4
Ionic Framework    : ionic-angular 3.9.2

系统:

ios-deploy : 1.9.2
Node       : v6.9.4
npm        : 3.10.10
OS         : macOS Sierra
Xcode      : Xcode 9.2 Build version 9C40b

环境变量:

ANDROID_HOME : not set

其他:

backend : pro

我的package.json

的一部分
    "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "^5.0.0",
    "@angular/compiler": "^5.0.0",
    "@angular/compiler-cli": "^5.0.0",
    "@angular/core": "^5.0.0",
    "@angular/forms": "^5.0.0",
    "@angular/http": "^5.0.0",
    "@angular/platform-browser": "^5.0.0",
    "@angular/platform-browser-dynamic": "^5.0.0",
    "@ionic-native/app-rate": "^4.3.3",
    "@ionic-native/app-version": "^4.3.3",
    "@ionic-native/core": "4.2.0",
    "@ionic-native/email-composer": "^4.3.3",
    "@ionic-native/facebook": "^4.5.2",
    "@ionic-native/google-maps": "4.2.0",
    "@ionic-native/keyboard": "^4.4.2",
    "@ionic-native/onesignal": "4.5.2",
    "@ionic-native/paypal": "^4.3.3",
    "@ionic-native/social-sharing": "^4.3.3",
    "@ionic-native/splash-screen": "4.2.0",
    "@ionic-native/status-bar": "^4.3.2",
    "@ionic-native/stripe": "^4.3.3",
    "@ionic/storage": "^2.1.3",
    "@ngx-translate/core": "^8.0.0",
    "@ngx-translate/http-loader": "^0.1.0",
    "android-versions": "^1.2.1",
    "card.io.cordova.mobilesdk": "^2.1.0",
    "com.paypal.cordova.mobilesdk": "^3.5.0",
    "cordova-ios": "~4.5.4",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-apprate": "^1.3.0",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-dialogs": "^1.3.4",
    "cordova-plugin-email-composer": "^0.8.11",
    "cordova-plugin-facebook4": "^1.7.4",
    "cordova-plugin-globalization": "^1.0.8",
    "cordova-plugin-googlemaps-sdk": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git#2.6.0",
    "cordova-plugin-inappbrowser": "^1.7.2",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-splashscreen": "^4.1.0",
    "cordova-plugin-statusbar": "git+https://github.com/apache/cordova-plugin-statusbar.git",
    "cordova-plugin-stripe": "^1.5.3",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-socialsharing": "^5.2.1",
    "es6-promise-plugin": "^4.1.0",
    "font-awesome": "4.7.0",
    "ion-affix": "^1.1.1",
    "ionic": "3.20.0",
    "ionic-angular": "^3.9.2",
    "ionic-img-viewer": "^2.7.3",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "localforage": "^1.5.3",
    "moment": "^2.18.1",
    "onesignal-cordova-plugin": "^2.3.3",
    "rxjs": "^5.5.2",
    "sw-toolbox": "3.6.0",
    "woocommerce-api": "^1.4.2",
    "zone.js": "^0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^3.1.0",
    "ionic": "3.20.0",
    "typescript": "^2.4.2"
  },

注意:我已经阅读了很多论坛,而且我已经阅读过所有我必须在platform.ready()之后放置地图,所以我做了......但它仍然不起作用,...同样的我在第一张图片中展示的其他插件。

注意2:我还使用--prod和(ionic cordova run android

运行

注意3:该应用程序是一个虚拟商店,通常运行良好,所以当我看到这么多警告时,我感到很惊讶

0 个答案:

没有答案