Can't run Ionic on Android: class not found exception IonicKeyboard

走远了吗. 提交于 2019-12-22 06:57:05

问题


After building and running android app it closes.

Viewing Eclipse logcat it shows a class not found exception com.ionic.keyboard.IonicKeyboard

I'm new with Ionic and I don't know how to make it work. Thanks in advance


回答1:


I had the same problems. In my case the plugin was already installed, so I had to remove and add it again:

Try this in your app-folder:

cordova plugin remove com.ionic.keyboard

and

cordova plugin add com.ionic.keyboard



回答2:


npm changed plugin names. Now it should be cordova plugin add ionic-plugin-keyboard

Try this in your app-folder:

cordova plugin remove ionic-plugin-keyboard

and

cordova plugin add ionic-plugin-keyboard



回答3:


Seems that plugin not installed?

Try in cmd:

cordova plugin add com.ionic.keyboard


来源:https://stackoverflow.com/questions/26383949/cant-run-ionic-on-android-class-not-found-exception-ionickeyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!