简体   繁体   中英

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.

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

if not work try this

npm uninstall cordova ionic

npm cache clean -f sudo npm install -g

cordova@6.5.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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