-
Notifications
You must be signed in to change notification settings - Fork 12
Description
As I run this command: ionic cordova platform add android
I got this error:
Using cordova-fetch for cordova-android@^8.0.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.ionicvideochat.v3
Name: ionic_video_chat_3
Activity: MainActivity
Android target: android-28
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@8.1.0
Installing "cordova-plugin-crosswalk-webview" for android
Subproject Path: CordovaLib
Subproject Path: app
After much discussion and analysis of the market, we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20.
So the minSdkVersion of Cordova project is configured to 16 by default.
Failed to install 'cordova-plugin-crosswalk-webview': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
at Context.requireCordovaModule (/home/arthonsys/.nvm/versions/node/v8.11.3/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
at module.exports (/home/arthonsys/Documents/CHANDAN/ionic-chat/ionic-video-chat/plugins/cordova-plugin-crosswalk-webview/hooks/after_plugin_install/000-shared_mode_special.js:6:28)
at runScriptViaModuleLoader (/home/arthonsys/.nvm/versions/node/v8.11.3/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
at runScript (/home/arthonsys/.nvm/versions/node/v8.11.3/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
at /home/arthonsys/.nvm/versions/node/v8.11.3/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
at
at process._tickCallback (internal/process/next_tick.js:188:7)
Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
[ERROR] Exception:
Can anyone help me to resolve this issue?