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

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

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

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

Seems that plugin not installed?
Try in cmd:
cordova plugin add com.ionic.keyboard

Related

How to fix Error "'#ionic-enterprise/auth' is not in the npm registry."

while installing auth0 in ionic I'm facing this error.
ionic cordova plugin add #ionic-enterprise/auth-connect --variable AUTH_URL_SCHEME=com.company.app
The package #ionic-enterprise/auth is only available for subscriptors.
See: https://github.com/ionic-team/ionic-cli/issues/4359

Ionic plugins not installed

I have an issue only with android build, when I running on emulator or device android I get the error that ALL plugins are not installed, on ios emulator or device I dont have this issue
Any idea?
Thanks
Evripides
Maybe your plugins are not prepared.
Try cordova prepare then npm install and finally ionic cordova platform add <your_platform>
Your problem is specific with android so your platform should be android
remove node module and package.json.lock file manually
remove android platform using command ionic cordova platform rm android
npm i
ionic cordova platform add android
and install all plugins like below
ionic cordova plugin add cordova-plugin-file
npm install #ionic-native/file --save
Finaly I found the error on 1 plugin in-app-purchase, I removed it and reinstall it and now all are fine
Thank you all
sometimes android build fails dependencies mismatch so and re run fresh.
delete node_module
npm i
ionic cordova rm android
ionic cordova add platform android

Ionic don't see call-number plugin

I installed call number plugin on ionic. In fact it created a directory to ionic-native but I have the error "console.warn: Ionic Native: tried calling CallNumber.callNumber, but the CallNumber plugin is not installed.".
How I can fix this error?
Please be sure that you installed the cordova plugin:
ionic cordova plugin add call-number
Maybe you can try deleting the platforms and adding them again.
ionic cordova platform remove ios
ionic cordova platform remove android
ionic cordova platform add ios
ionic cordova platform add android

With cordova facebook plugin: run/build android not work

I am trying to add the plugin: cordova-plugin-facebook4 in my application with the ionic cordova plugin add command cordova-plugin-facebook4 - variable APP_ID =" 092809180912829 "--various APP_NAME =" test "
But whenever I install the plugin and useionic cordova build android`
I receive:
[ERROR] An error occurred while running subprocess cordova.
But if I remove the plugin, works perfectly build and run android.
I'm using ionic 4.3.0 / Cordova CLI 7.0.0 / Cordova platform: 7.0.0
Can anyone tell me what it can be? I found a lot on the internet, but none of the solutions worked for me and I no longer know what it can be. thanks
You can install the ionic-native facebook wrapper.
npm install #ionic-native/facebook#beta
and follow the instructions on Ionic-native facebook

Ionic cordova plugin not showing up

new to ionic I'm using windows 7 with ionic I tried ..ionic add plugin ... to add new plugins when I check my directory structure the plugins are not installed how do I add new plugins and how do I check if the install worked
I think you want to add a cordova plugin, not an ionic plugin? If so you have to do it like this:
cordova plugin add [plugin]
for e.g. the network plugin:
cordova plugin add org.apache.cordova.network-information
The plugin now should show up in the app/plugins folder
Hope this helps!