ossi
ossi

Reputation: 85

Cordova: Cannot find module './android_sdk'

I checked out a Cordova project from SVN in IntelliJ Webstorm. When I try to run it on an emulated Android device, I receive the error message:

Error: Cannot find module './android_sdk'

All the other people working on the project can run the project fine. And I can run every project that I have created locally.

Upvotes: 0

Views: 2110

Answers (1)

mhdmhsni
mhdmhsni

Reputation: 21

in my case (Kubuntu 16.04.2, Ionic 3.3.0, Cordova 7.0.1) i just did this:

cordova platform rm android
cordova platform add android

and that did the trick :)

Upvotes: 1

Related Questions