node:events:491 capacitor throw er

The error message "node:events:491 capacitor throw er" is a generic error message that may occur in different contexts.

In my case, I resolved it by moving the Android Studio folder to /usr/local directory.  It is clearly mentioned in the docs that we should set CAPACITOR_ANDROID_STUDIO_PATH as a path variable for the Android studio location.

But even I was setting this path variable ionic cap build android command was not able to find the android studio location and was failing.

So only trick which worked for me is to completely move the Android studio folder in /usr/local directory. 

No comments:

Post a Comment