[Resolved] Error: Cannot find module ‘cordova-android’

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’


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

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *