Error with npx cap run android #5530
-
I'm new to capacitor and trying to get a simple project running and followed all of the prerequisite steps. I installed as following:
When I run
I get the following error:
If use Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 13 replies
-
Can you run this and provide the console output?
|
Beta Was this translation helpful? Give feedback.
-
Hello, In my case, I can use liveReload mode on iOS. I can generate the production version for android, however, when I try to use livereload on android gives the same error. (✖ Running Gradle build - failed! I’ve basically tried everything, including deleting the settings, Node, Ionic, but the error persists. The error apparently appeared without having made any changes to the system. And I also have apple’s M1 CPU. Rui |
Beta Was this translation helpful? Give feedback.
-
It looks like Node.js is broken, try to install Node LTS (v16) |
Beta Was this translation helpful? Give feedback.
-
Node installed with home brew does not work, Use nodenv instead
|
Beta Was this translation helpful? Give feedback.
-
Just FYI, it has been fixed in node distributed through homebrew Just run
|
Beta Was this translation helpful? Give feedback.
-
Another possible issue, causing this error Recently i converted files from LF to CRLF as it was showing extra file changes in git,
|
Beta Was this translation helpful? Give feedback.
Node installed with home brew does not work, Use nodenv instead