Ionic run android error


#1

I just installed ionic but when I try ‘ionic emulate android’ in the cmd window, I get the following error:

“Error: ENOENT, no such file or directory 'C:\Users…\myapp\plugins\com.ionic.keyboard\www\keyboard.js”

I have tried deleting the project and creating a new one, uninstalling ionic and cordova and reinstalling them, amongst other attempts at fixing the problem and I have not had any success. I looked in the directory in the error message and everything is there until \www\keyboard.js. There is no www folder.

Also, I’m running windows 8. If anyone has any idea how to fix this I would really appreciate it. Thanks!


#2

Does cordova plugin add com.ionic.keyboard in the root of the project help?


#3

It says that it is already installed on android


#4

Can you show a screenshot of the error message, that might help


#5

Thanks for your help everyone, but I was able to get it working by creating the www folder and then creating a file called keyword.js. I got the actual text from keyword.js by looking it up on github. It still does not work for ‘ionic emulate android’, but it does work in genymotion when I submit ‘ionic run android’, which is what I planned to do from the start.