简体   繁体   English

Cordova插件屏幕方向不起作用

[英]Cordova plugin screen orientation not work

I have a problem with "cordova-plugin-screen-orientation", when I install this plugin and I add Android platform it error, but iOS fine, and I try to remove this plugin and add Android platform first and then I can't install "cordova-plugin-screen-orientation" it always show fetch error. 我对“ cordova-plugin-screen-orientation”有问题,当我安装此插件并添加Android平台时报错,但iOS正常,我尝试删除此插件并先添加Android平台,然后我无法安装“ cordova-plugin-screen-orientation”时,它始终显示获取错误。

global packages:

@ionic/cli-utils : 1.5.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.5.0
local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms               : ios 4.4.0
Ionic Framework                 : ionic-angular 3.3.0
System:

Node       : v8.1.3
OS         : macOS Sierra
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.1.0

cordova plugin add com.appodeal.plugin 科尔多瓦插件添加com.appodeal.plugin

if not work try this 如果不行,试试这个

npm uninstall cordova ionic npm卸载cordova ionic

npm cache clean -f sudo npm install -g npm缓存清理-f sudo npm install -g

cordova@6.5.0 cordova@6.5.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM