While running any of the following commands:
cordova requirements android --verbose
ionic cordova build android
you may face an issue saying:
Error: Cannot find module ‘cordova-android’
Solution
You can resolve this issue by simply removing and adding the android platform.
If you have the “android” folder in your application folder, then execute the following commands one by one
# Remove Android Platform
ionic cordova platform rm android
# Add Android Platform
ionic cordova platform add android
Leave a Reply