Can't install Keyboard plugin


#1

Hello guys, I’m trying to install the keyboard plugin but when I do ionic cordova plugin add ionic-plugin-keyboard I get the following error:

Failed to install 'ionic-plugin-keyboard': CordovaError: Uh oh!
"C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\src\io\ionic\keyboard\IonicKeyboard.java" already exists!
    at copyNewFile (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\lib\pluginHandlers.js:245:45)
    at install (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\lib\pluginHandlers.js:43:17)
    at ActionStack.process (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\cordova-common\src\ActionStack.js:56:25)
    at PluginManager.doOperation (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:114:20)
    at PluginManager.addPlugin (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:144:17)
    at C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\Api.js:243:74
    at _fulfilled (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\q\q.js:854:54)
    at self.promiseDispatch.done (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\q\q.js:883:30)
    at Promise.promise.promiseDispatch (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\q\q.js:816:13)
    at C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\q\q.js:624:44

(node:9936) UnhandledPromiseRejectionWarning: CordovaError: Uh oh!
"C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\src\io\ionic\keyboard\IonicKeyboard.java" already exists!
    at copyNewFile (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\lib\pluginHandlers.js:245:45)
    at install (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\lib\pluginHandlers.js:43:17)
    at ActionStack.process (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\cordova-common\src\ActionStack.js:56:25)
    at PluginManager.doOperation (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:114:20)
    at PluginManager.addPlugin (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:144:17)
    at C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\Api.js:243:74
    at _fulfilled (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\q\q.js:854:54)
    at self.promiseDispatch.done (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\q\q.js:883:30)
    at Promise.promise.promiseDispatch (C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\q\q.js:816:13)
    at C:\Ulises\Ionic\Sanitas\movil-repo-gitlab\platforms\android\cordova\node_modules\q\q.js:624:44
(node:9936) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9936) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

How can I solve this? Thanks.


#2

That means you have keyboard installed already.
Check if you have both keyboard plugins. ionic-plugin-keyboard and cordova-plugin-ionic-keyboard.
If so remove one.


#3

thank you. i have remove ionic keyboard plugin then i build android